Skip to content

Commit

Permalink
make example repeated
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailNazarov committed Oct 2, 2024
1 parent b6cc0bd commit c2d7728
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{env, str::FromStr};
use tracing::{info, Level};

use tracing_log::log::LevelFilter;
use ydb_sqlx::{connection::YdbConnectOptions, with_name, YdbPoolOptions};
use ydb_sqlx::{connection::YdbConnectOptions, YdbPoolOptions};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
init_logs();
Expand All @@ -30,7 +30,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
description: None
};


sqlx::query("DELETE FROM test4 where id = $id")
.bind(("id",test_user_info.id))
.execute(&pool)
.await?;


sqlx::query("INSERT INTO test4 (id, name, age, description) VALUES ( $arg_1, $arg_2, $age, $arg_3)")
Expand Down

0 comments on commit c2d7728

Please sign in to comment.