Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Open Sqlite database connection pool #255

vjkolaventy started this conversation in General
Discussion options

Hi

Can you please guide me on how to create a database connection pool for high volume transactions? I also would like to know how to open a database connection without creating a new database file in case the there is no database file in which case it should return an error. Thanks

Regards
Vijay

You must be logged in to vote

Replies: 2 comments

Comment options

Hi

Can you please guide me on how to create a database connection pool for high volume transactions? I also would like to know how to open a database connection without creating a new database file in case the there is no database file in which case it should return an error. Thanks

Regards Vijay

 let rb = Rbatis::new();
    // ------------choose database driver------------
    rb.init(
        rbdc_sqlite::driver::SqliteDriver {},
        "sqlite://?mode=memory",
    )
    .unwrap();
You must be logged in to vote
0 replies
Comment options

I wanted to know if there is something similar to Sqlite::database_exists. I dont want to create a database file every time I open a database connection in case there is no database file already created.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
2 participants
Converted from issue

This discussion was converted from issue #254 on September 29, 2022 08:38.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.