mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 05:11:13 +00:00
Fix formatting in SQLite example
This commit is contained in:
parent
8d454c48d0
commit
89c9b059e6
@ -1,5 +1,5 @@
|
||||
use sqlx::SqlitePool;
|
||||
use sqlx::sqlite::SqliteQueryAs;
|
||||
use sqlx::SqlitePool;
|
||||
use std::env;
|
||||
use structopt::StructOpt;
|
||||
|
||||
@ -55,11 +55,9 @@ VALUES ( $1 )
|
||||
.execute(pool)
|
||||
.await?;
|
||||
|
||||
let rec: (i64,) = sqlx::query_as(
|
||||
"SELECT last_insert_rowid()"
|
||||
)
|
||||
.fetch_one(pool)
|
||||
.await?;
|
||||
let rec: (i64,) = sqlx::query_as("SELECT last_insert_rowid()")
|
||||
.fetch_one(pool)
|
||||
.await?;
|
||||
|
||||
Ok(rec.0)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user