Method
__init__
(
self,
database: str | None,
user: str | None,
password: str | None,
host: str | None,
port: int | None,
socket: str | None,
character_set: str | None,
local_infile: bool | None,
ssl: dict[str, Any] | None,
init_command: str | None = None,
unbuffered: bool | None = None,
)
Source from the content-addressed store, hash-verified
| 155 | return values |
| 156 | |
| 157 | def __init__( |
| 158 | self, |
| 159 | database: str | None, |
| 160 | user: str | None, |
| 161 | password: str | None, |
| 162 | host: str | None, |
| 163 | port: int | None, |
| 164 | socket: str | None, |
| 165 | character_set: str | None, |
| 166 | local_infile: bool | None, |
| 167 | ssl: dict[str, Any] | None, |
| 168 | init_command: str | None = None, |
| 169 | unbuffered: bool | None = None, |
| 170 | ) -> None: |
| 171 | self.dbname = database |
| 172 | self.user = user |
| 173 | self.password = password |
| 174 | self.host = host |
| 175 | self.port = port |
| 176 | self.socket = socket |
| 177 | self.character_set = character_set |
| 178 | self.local_infile = local_infile |
| 179 | self.ssl = ssl |
| 180 | self.server_info: ServerInfo | None = None |
| 181 | self.connection_id: int | None = None |
| 182 | self.init_command = init_command |
| 183 | self.unbuffered = unbuffered |
| 184 | self.conn: Connection | None = None |
| 185 | self.connect() |
| 186 | |
| 187 | def connect( |
| 188 | self, |
Callers
nothing calls this directly
Tested by
no test coverage detected