Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
/ ydb-steroids Public archive

Added extra functional to yandex database rust client. Such as migrations, macro for query, testcontainer support.

License

Notifications You must be signed in to change notification settings

avkviring/ydb-steroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steroids for ydb client

Migration

let mut migrator = Migrator::new_from_dir(&include_dir!("$CARGO_MANIFEST_DIR/test-migration"));
migrator.migrate(&mut client).await.unwrap();

Query macros

query!("insert into a (id) values($id)", id=>id)

Select macros

let result: Vec<i32> = select!(client.table_client(), query!("select id from a"), id=>i32)
.await
.unwrap();

Update macros

update!(
client.table_client(),
    query!("insert into a (id) values($id)", id=>id)
)

Test container

Enable feature test_container

let (_node, client) = get_or_create_ydb_instance("should_create_docker_and_connect").await;

About

Added extra functional to yandex database rust client. Such as migrations, macro for query, testcontainer support.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages