Next: Service D-Bus Constants, Previous: Services and Communication: Server and Client, Up: API Reference [Contents]
STMYSQLClientAsync MySQL/MariaDB helper used by the Core for labels, history, and stats (starter/mysql-client.h).
Creates a client and begins connecting. db_name is required (non-empty valid identifier). May return an object in degraded state if connect fails.
Logical source label for logs/history attribution.
Database host.
Database TCP port.
Database user.
Database password.
Schema name (required).
Filled when construction fails hard (e.g. invalid db_name).
Returns: New STMYSQLClient, or NULL on invalid arguments.
Validates a schema name before use.
Candidate identifier.
Filled with the reason on failure.
Returns: TRUE if acceptable.
ST_MYSQL_CLIENT_STATE_IDLENot connected.
ST_MYSQL_CLIENT_STATE_CONNECTINGConnect in progress.
ST_MYSQL_CLIENT_STATE_READYReady to enqueue work.
ST_MYSQL_CLIENT_STATE_FAILEDConnection failed.
Reads connection state.
Client.
Returns: Current state.
Convenience for ready state.
Client.
Returns: TRUE if ready.
Sets affinity for client signals.
Client.
Context, or NULL for default.
Returns: Nothing.
Reads notify affinity.
Client.
Returns: Borrowed GMainContext.
Bounds the async write queue (default 1024). Useful for tests/ops.
Client.
Maximum queued operations.
Returns: Nothing.
Reads the current queue depth.
Client.
Returns: Number of queued operations.
Enqueues an upsert of the input’s label metadata.
Client.
Source input.
Filled if enqueue fails.
Returns: TRUE if queued; completion/failure arrives via signals.
Enqueues an upsert of the output’s label metadata.
Client.
Source output.
Filled if enqueue fails.
Returns: TRUE if queued.
Enqueues a history row for an I/O identifier.
Client.
I/O identifier.
Sample value.
Flags at sample time.
Filled if enqueue fails.
Returns: TRUE if queued.
Reads the most recent history value for name (may block/query depending on implementation path).
Client.
I/O identifier.
Filled on failure.
Returns: Last value, or an invalid sentinel on failure.
Enqueues a stats upsert for the service named in stats.
Client.
Stats object.
Filled if enqueue fails.
Returns: TRUE if queued.
Next: Service D-Bus Constants, Previous: Services and Communication: Server and Client, Up: API Reference [Contents]