mirror of https://github.com/rwf2/Rocket.git
34 lines
567 B
Rust
34 lines
567 B
Rust
use rocket_sync_db_pools::database;
|
|
|
|
#[allow(unused_imports)]
|
|
use rocket_sync_db_pools::diesel;
|
|
|
|
#[database]
|
|
struct A(diesel::SqliteConnection);
|
|
|
|
#[database(1)]
|
|
struct B(diesel::SqliteConnection);
|
|
|
|
#[database(123)]
|
|
struct C(diesel::SqliteConnection);
|
|
|
|
#[database("hello" "hi")]
|
|
struct D(diesel::SqliteConnection);
|
|
|
|
#[database("test")]
|
|
enum Foo { }
|
|
|
|
#[database("test")]
|
|
struct Bar(diesel::SqliteConnection, diesel::SqliteConnection);
|
|
|
|
#[database("test")]
|
|
union Baz { }
|
|
|
|
#[database("test")]
|
|
struct E<'r>(&'r str);
|
|
|
|
#[database("test")]
|
|
struct F<T>(T);
|
|
|
|
fn main() { }
|