EasyUniDbConfig class

数据库配置

Inheritance

Constructors

EasyUniDbConfig({EasyLogHandler? logger, EasyLogLevel? logLevel, String? logTag, String? logFilePath, int? logFileBackup, int? logFileMaxBytes, required EasyUniDbDriver driver, required String host, required int port, String? user, String? password, required String db, int poolSize = 8, bool poolLazy = true, int idleTimeMs = 30 * 60 * 1000, required Map<String, String> params})

Properties

db String
数据库名称
final
driver EasyUniDbDriver
驱动类型
final
hashCode int
The hash code for this object.
no setterinherited
host String
数据库域名
final
idleTimeMs int
连接空闲毫秒
final
logFileBackup int?
日志文件保存数量
finalinherited
logFileMaxBytes int?
日志文件每份大小(字节)
finalinherited
logFilePath String?
日志输出文件路径
finalinherited
logger EasyLogHandler?
日志处理方法
finalinherited
logLevel EasyLogLevel?
日志级别
finalinherited
logTag String?
日志标签
finalinherited
params Map<String, String>
其他连接参数
final
password String?
数据库密码
final
poolLazy bool
连接池懒加载
final
poolSize int
连接池大小
final
port int
数据库端口
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user String?
数据库用户名
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited