新增websocket 主动断开 加入 sqlite数据

This commit is contained in:
2026-04-22 18:06:23 +08:00
parent 8c5aee049d
commit 6b7782522d
5 changed files with 445 additions and 9 deletions

View File

@@ -29,14 +29,20 @@ abstract class DataBase {
Future<int> count(String tbale, {dynamic condition});
}
enum DataBaseType { mongo, sqlite }
class DataBaseConfig {
DataBaseType type;
String host;
String userName;
String password;
String dataBase;
DataBaseConfig(
{required this.host,
required this.userName,
required this.password,
required this.dataBase});
DataBaseConfig({
this.type = DataBaseType.mongo,
this.host = '',
this.userName = '',
this.password = '',
required this.dataBase,
});
}