Skip to content

Commit

Permalink
Format sql bits
Browse files Browse the repository at this point in the history
  • Loading branch information
swlkr committed Sep 10, 2024
1 parent 08138a0 commit 80d8b9e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ mod tests {
id integer primary key not null,
title text not null,
test integer
)
"# as Post;
)"# as Post;

let create_likes = r#"
create table if not exists likes (
id integer primary key not null,
post_id integer not null references posts(id)
)
"# as Like;
)"# as Like;

let create_items = r#"
create table if not exists items (
value integer not null
)
"# as Item;
)"# as Item;

let insert_post = r#"
insert into posts (title, test)
Expand Down Expand Up @@ -114,7 +111,8 @@ mod tests {
order by items.value
"# as Vec<Item>;

let create_post = r#"
let create_post =
r#"
insert into posts (id, title)
values (?, ?)
on conflict (id)
Expand Down

0 comments on commit 80d8b9e

Please sign in to comment.