新增websocket 主动断开 加入 sqlite数据
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user