DbConfig class

数据库配置

Constructors

DbConfig({required String host, required int port, String? user, String? password, required String db, required int poolSize, required bool poolLazy, required int idleTimeMs, required Map<String, String> params})

Properties

db String
数据库名
final
hashCode int
The hash code for this object.
no setterinherited
host String
数据库主机域名或IP地址
final
idleTimeMs int
连接空闲毫秒
final
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