Skip to content

Commit

Permalink
style: upper sace foe sql commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Brantov Denis committed Jul 15, 2023
1 parent 64fe094 commit 880e29a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blog-server-services/src/impls/rbatis_post_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@ struct RbatisPostService {
impl RbatisPostService {
#[py_sql(
"
insert into post (author_id,title,slug,summary,published,created_at,content) VALUES
INSERT INTO post
(author_id,title,slug,summary,published,created_at,content)
VALUES
(#{post.author_id},#{post.title},#{post.slug},#{post.summary},#{post.published},to_timestamp(#{post.created_at}),#{post.content})
returning id
RETURNING id
"
)]
async fn test_insert(rb: &RBatis, post: &BasePost) -> rbatis::Result<i64> {
Expand Down

0 comments on commit 880e29a

Please sign in to comment.