yiannisha / dbmanage

A single python library to manage PostgreSQL and MySQL databases.
Apache License 2.0
0 stars 0 forks source link

Should connection really be working with subprocesses and cli tools #18

Open yiannisha opened 3 years ago

yiannisha commented 3 years ago

The whole point of writing my library in pure python is to get rid of different dependencies but requiring the client to install a cli tool so that the library can work isn't the same if not worst?

I am suggesting a requests approach with Sessions for constant connections. This migration would probably require rewriting the whole reading system. The OOP structure on the other hand could easily be modified use this approach instead.

yiannisha commented 3 years ago

I am suggesting a requests approach with Sessions for constant connections.

This is impossible

yiannisha commented 3 years ago

I've read something about ips and tokens. Should look into that.

Also take a look at how mysql and postgre sql python apis work.

yiannisha commented 3 years ago

Learning about sockets will be the starting point if I want to follow this plan. Maybe make this into a new project that I can merge with this one once it's mature enough.