From ef677f301a71b16ccfa4976bd54620fa7dc33908 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 22 Jul 2021 16:32:18 +0800 Subject: [PATCH] bugfix --- databases.json | 26 ++++++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 27 insertions(+) create mode 100644 databases.json diff --git a/databases.json b/databases.json new file mode 100644 index 0000000..0aa8269 --- /dev/null +++ b/databases.json @@ -0,0 +1,26 @@ +{ + "mysql":{ + "driver":"aiomysql", + "async_mode":true, + "coding":"utf8", + "dbname":"homedata", + "maxconn":100, + "kwargs":{ + "user":"test", + "db":"homedata", + "password":"test123", + "host":"localhost" + } + }, + "sqlite3":{ + "driver":"aiosqlite", + "async_mode":true, + "coding":"utf8", + "dbname":"testdb", + "maxconn":100, + "kwargs":{ + "database":"./ttttt.db" + } + } +} + diff --git a/requirements.txt b/requirements.txt index bc30b48..ad324bf 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ aiomysql mysql-connector +aiosqlite asyncio jinja2