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

Detailed Description

Definition at line 47 of file control.py.

Public Member Functions

 __init__ (self, ConnectionCache connections, bool verbose=False)
clickhouse_driver.Client get_connection (self, str dbname, bool create_db=True)
 run_migration (self, str dbname, pathlib.Path path)

Protected Member Functions

 _init_db (self, str dbname)

Protected Attributes

 _connections = connections
 _verbose = verbose

Static Protected Attributes

set _migrations_run [tuple[str, pathlib.Path]]
set _initialized [str]

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 51 of file control.py.

Member Function Documentation

◆ _init_db()

testsuite.databases.clickhouse.control.DatabasesState._init_db ( self,
str dbname )
protected

Definition at line 81 of file control.py.

◆ get_connection()

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

Definition at line 57 of file control.py.

◆ run_migration()

testsuite.databases.clickhouse.control.DatabasesState.run_migration ( self,
str dbname,
pathlib.Path path )

Definition at line 68 of file control.py.

Member Data Documentation

◆ _connections

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

Definition at line 52 of file control.py.

◆ _initialized

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

Definition at line 49 of file control.py.

◆ _migrations_run

set testsuite.databases.clickhouse.control.DatabasesState._migrations_run [tuple[str, pathlib.Path]]
staticprotected

Definition at line 48 of file control.py.

◆ _verbose

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

Definition at line 53 of file control.py.


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