i2mint / py2store

Tools to create simple and consistent interfaces to complicated and varied data sources.
MIT License
12 stars 2 forks source link

Feature/uri based construction #42

Open Kulv3r opened 5 years ago

Kulv3r commented 5 years ago

Per https://github.com/i2mint/py2store/issues/38

Kulv3r commented 5 years ago

There are persisters that I could not think of a proper way to add uri/collection args:

Also, while implementing it, there were persisters with 2 kinds of URI param - as a string like https://username:password@example.com:5984/, or as a dict like:

dict(
  conn_protocol='tcp',
  host='localhost',
  port='1433',
  db_username='SA',
  db_pass='Admin123x',
  db_name='py2store',
)

And I feel concerned about this. 2 types, not consistent. Maybe convert string-typed URIs to dict ones also. Would be more complex to use, but more consistent overall.