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 support for multiple database instances #19

Merged
merged 2 commits into from
Nov 3, 2023
Merged

Add support for multiple database instances #19

merged 2 commits into from
Nov 3, 2023

Commits on Nov 3, 2023

  1. refactor: move everything from lib into separate modules

    This gives a more concise picture of the full public API, and makes
    navigating the code a bit easier with the large doc comments.
    connec committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    c0b7a18 View commit details
    Browse the repository at this point in the history
  2. refactor: support multiple databases of the same type

    This adds a `Marker` trait, which just specifies a database `Driver`
    implementing `sqlx::Database`. APIs now use `Marker` as the bound for
    `DB` generic type parameters. There is a trivial blanket implementation
    for all types implementing `sqlx::Database` which makes this backwards
    compatible.
    connec committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    243fc03 View commit details
    Browse the repository at this point in the history