Skip to content

Navigation Menu

Sign in
Appearance settings

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

DBPool #313

sysmat started this conversation in General
Oct 25, 2022 · 1 comment
Discussion options

I'm new to this lib, is there any documentation/example how to:

  1. how to configure connection : url, time out, validation, ssl
  2. how to configure DB pool : min, max connections, idle time, ...
  3. how to Lazy init Rbatis with : DB pool

For MySQL data base

You must be logged in to vote

Replies: 1 comment

Comment options

I'm new to this lib, is there any documentation/example how to:

  1. how to configure connection : url, time out, validation, ssl
  2. how to configure DB pool : min, max connections, idle time, ...
  3. how to Lazy init Rbatis with : DB pool

For MySQL data base

rbdc = { version = "0.1",features = ["_tls-rustls"] }
  1. rbatis use deadpool so you can Dynamically adjust the number of connections.use
 rb.get_pool().unwrap().resize(10)
  1. default is Lazy init. use rb.init() method

If you're still confused
see document
or see admin project
to Find specific ways to use it

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 #310 on October 27, 2022 01:43.

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