package
2.4.0-alpha+incompatible
Repository: https://github.com/radondb/radondb-mysql-kubernetes.git
Documentation: pkg.go.dev

# Functions

BuildAtomicQuery concatenates the provided queries into a single query wrapped in a BEGIN COMMIT block.
No description provided by the author
CheckReadOnly check whether the mysql is read only.
check readonly node, rpl_semi_sync_slave_enabled.
CheckSlaveStatus check the slave status.
CheckSlaveStatusWithRetry check the slave status with retry time.
ConcatenateQueries concatenates the provided queries into a single query.
CreateUserIfNotExists creates a user if it doesn't already exist and it gives it the specified permissions.
DropUser removes a MySQL user if it exists, along with its privileges.
Escape escapes a string.
GetGlobalVariable used to get the global variable by param.
NewConfigFromClusterKey returns a new Config based on a MySQLCluster key.
No description provided by the author
No description provided by the author
NewQuery returns a new Query object.
No description provided by the author
NewSQLRunner opens a connections using the given DSN.
No description provided by the author
NewXenonHttpRequest returns the http request of the corresponding type according to the incoming configuration.

# Structs

Config is used to connect to a MysqlCluster.
Query contains a escaped query string with variables marked with a question mark (?) and a slice of positional arguments.
No description provided by the author
RequestConfig is the configuration required to get xenon http requests.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
SQLRunner interface is a subset of mysql.DB.
No description provided by the author

# Type aliases

SQLRunnerFactory a function that generates a new SQLRunner.