Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database: Wrap EdgeQLConnection objects #29

Open
isidentical opened this issue Jan 10, 2021 · 0 comments
Open

database: Wrap EdgeQLConnection objects #29

isidentical opened this issue Jan 10, 2021 · 0 comments

Comments

@isidentical
Copy link
Member

isidentical commented Jan 10, 2021

Since we separated EdgeDB-bound logic from the compiler/serializer, maybe we can do the same thing to the database connections.

  • Introducing reiz.database package with
    • get_connection(backend: str) -> BaseConnection, connection: BaseConnection = get_connection(config.ir.backend)
    • reiz.database.base a BaseConnection class, which would host 2 main methods (maybe more) get_blocking_connection(), get_async_connection. It might host a pool inside maybe
    • reiz.database.edgeql that implements these methods
@isidentical isidentical changed the title reiz.edgeql: Wrap EdgeQLConnection objects database: Wrap EdgeQLConnection objects Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant