tarantool / tarantool/tarantool-python
Implement dsn support for connect() method
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 108
- Forks
- 51
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 1
Description
Pep 249 suggests a constructor method of Connection objects .connect()
It takes the following parameters as arguments:
| Parameter | Meaning |
|---|---|
| dsn | Data source name as string |
| user | User name as string (optional) |
| password | Password as string (optional) |
| host | Hostname (optional) |
| database | Database name (optional) |
| kwargs | It is not from the standard but we use it for the method signature scalability. |
Implement dsn parser utility to pass the settings to the Connection init by only one line.
The pattern can be used ([[[username[:password]@]host:]port)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Connection object's connect() method and its initializer, then trace how connection parameters are currently passed. Define the DSN parser utility around the listed dsn, user, password, host, database, and kwargs inputs, and confirm that connect() passes the parsed settings to Connection initialization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100