From 009fb014cd70e620acf17f9d35c988b970e007b3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 16 Nov 2022 16:54:53 +0800 Subject: [PATCH] bugfix --- sqlor/aiosqliteor.py | 4 ++-- sqlor/dbpools.py | 1 + test/sqlite3_sql.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sqlor/aiosqliteor.py b/sqlor/aiosqliteor.py index 1aa628c..5de89c8 100644 --- a/sqlor/aiosqliteor.py +++ b/sqlor/aiosqliteor.py @@ -1,7 +1,7 @@ import re -from .sqlite3or import Sqlite3or +from .sqlite3or import SQLite3or -class Aiosqliteor(Sqlite3or): +class Aiosqliteor(SQLite3or): @classmethod def isMe(self,name): return name=='aiosqlite' diff --git a/sqlor/dbpools.py b/sqlor/dbpools.py index f206b6d..295e792 100755 --- a/sqlor/dbpools.py +++ b/sqlor/dbpools.py @@ -17,6 +17,7 @@ from .sor import SQLor from .mssqlor import MsSqlor from .oracleor import Oracleor from .sqlite3or import SQLite3or +from .aiosqliteor import Aiosqliteor from .mysqlor import MySqlor from .aiomysqlor import AioMysqlor from .aiopostgresqlor import AioPostgresqlor diff --git a/test/sqlite3_sql.py b/test/sqlite3_sql.py index 59e6694..680a016 100644 --- a/test/sqlite3_sql.py +++ b/test/sqlite3_sql.py @@ -22,7 +22,7 @@ if __name__ == '__main__': sys.exit(1) dbs = { "db":{ - "driver":"sqlite3", + "driver":"aiosqlite", "kwargs":{ "dbname":sys.argv[1] }