Got the structure; got lots of tests; item still needs work
This commit is contained in:
parent
d7123fb153
commit
7bb4cf4230
5 changed files with 338 additions and 88 deletions
|
|
@ -51,7 +51,7 @@ impl User {
|
|||
|
||||
pub async fn create(pool: &SqlitePool, name: &str) -> Result<Self> {
|
||||
let result = sqlx::query!(
|
||||
"INSERT INTO users (name)
|
||||
"INSERT INTO users (name)
|
||||
VALUES (?)
|
||||
RETURNING id, name",
|
||||
name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue