From c0fdaebfab96f81613aec26f2c9be1d0bf65edf4 Mon Sep 17 00:00:00 2001 From: fan-tastic-z Date: Mon, 11 Dec 2023 16:43:32 +0800 Subject: [PATCH] fix: generate config template database_url error --- src/template/config/config.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/template/config/config.hbs b/src/template/config/config.hbs index 973129a..c14d952 100644 --- a/src/template/config/config.hbs +++ b/src/template/config/config.hbs @@ -18,7 +18,7 @@ database_url="mysql://root:981109@localhost/salvo_demo" {{/if}} {{#if is_diesel}} {{#if is_postgres}} -database_url=postgres://liufankai:1@localhost/diesel_example +database_url="postgres://liufankai:1@localhost/diesel_example" {{/if}} {{#if is_sqlite}} database_url="file:data/test.db" @@ -29,7 +29,7 @@ database_url="mysql://root:123@127.0.0.1:3306/diesel_example" {{/if}} {{#if is_rbatis}} {{#if is_postgres}} -database_url=postgres://liufankai:1@localhost/rbatis_example +database_url="postgres://liufankai:1@localhost/rbatis_example" {{/if}} {{#if is_sqlite}} database_url="data/rbatis_sqlite.db"