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

Add functions to set up network and database connection(s) separately #49

Open
crclark opened this issue Dec 31, 2021 · 0 comments
Open

Comments

@crclark
Copy link
Owner

crclark commented Dec 31, 2021

As pointed out here, #48 (comment), connecting to multiple databases within a single process is allowed, but setting up multiple network threads is not.

At the moment, we only expose a withFoundationDB function, which sets up the network and connects to the database. Because it does both, it can't be used to connect to multiple databases.

Let's add a separate withNetwork function (with a warning to only call it once) and a separate withDatabase function for advanced use cases when we want to connect to multiple databases.

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