userver: testsuite.databases.mysql.control.DatabasesState Class Reference
Loading...
Searching...
No Matches
testsuite.databases.mysql.control.DatabasesState Class Reference

Detailed Description

Definition at line 139 of file control.py.

Public Member Functions

 __init__ (self, ConnectionCache connections, bool verbose=False)
 get_connection (self, str dbname, bool create_db=True)
 wrapper_for (self, str dbname)
 run_migration (self, str dbname, str path)
 known_databases (self)
None save_tables (self, str dbname)

Public Attributes

 known_databases

Protected Member Functions

 _initdb (self, str dbname)

Protected Attributes

bool _need_save_tables = True
 _connections = connections
 _verbose = verbose
dict[str, list[str]] _tables = dict()

Static Protected Attributes

set _migrations_run [tuple[str, str]]
set _initialized [str]

Constructor & Destructor Documentation

◆ __init__()

testsuite.databases.mysql.control.DatabasesState.__init__ ( self,
ConnectionCache connections,
bool verbose = False )

Definition at line 143 of file control.py.

Member Function Documentation

◆ _initdb()

testsuite.databases.mysql.control.DatabasesState._initdb ( self,
str dbname )
protected

Definition at line 186 of file control.py.

◆ get_connection()

testsuite.databases.mysql.control.DatabasesState.get_connection ( self,
str dbname,
bool create_db = True )

Definition at line 151 of file control.py.

◆ known_databases()

testsuite.databases.mysql.control.DatabasesState.known_databases ( self)

Definition at line 180 of file control.py.

◆ run_migration()

testsuite.databases.mysql.control.DatabasesState.run_migration ( self,
str dbname,
str path )

Definition at line 165 of file control.py.

◆ save_tables()

None testsuite.databases.mysql.control.DatabasesState.save_tables ( self,
str dbname )

Definition at line 195 of file control.py.

◆ wrapper_for()

testsuite.databases.mysql.control.DatabasesState.wrapper_for ( self,
str dbname )

Definition at line 158 of file control.py.

Member Data Documentation

◆ _connections

testsuite.databases.mysql.control.DatabasesState._connections = connections
protected

Definition at line 145 of file control.py.

◆ _initialized

set testsuite.databases.mysql.control.DatabasesState._initialized [str]
staticprotected

Definition at line 141 of file control.py.

◆ _migrations_run

set testsuite.databases.mysql.control.DatabasesState._migrations_run [tuple[str, str]]
staticprotected

Definition at line 140 of file control.py.

◆ _need_save_tables

bool testsuite.databases.mysql.control.DatabasesState._need_save_tables = True
protected

Definition at line 144 of file control.py.

◆ _tables

dict[str, list[str]] testsuite.databases.mysql.control.DatabasesState._tables = dict()
protected

Definition at line 149 of file control.py.

◆ _verbose

testsuite.databases.mysql.control.DatabasesState._verbose = verbose
protected

Definition at line 146 of file control.py.

◆ known_databases

testsuite.databases.mysql.control.DatabasesState.known_databases

Definition at line 189 of file control.py.


The documentation for this class was generated from the following file: