PostgresTexts

Wow's PostgreSQL statement texts and parameter types, on the clone's tables (raw_log, raw_snapshot, raw_partition): the columns Wow's append and save write, its transaction bound, its append and save texts, and its binding of a parameter by its type. A text differs from Wow's only in its table names.

Types

Link copied to clipboard
data class Column(val name: String, val type: String)

A column: its name and the type Wow binds and casts it as.

Properties

Link copied to clipboard
const val BYTEA: String
Link copied to clipboard
const val ID_SQL: String

Aggregates.idOf in SQL, of the number g.

Link copied to clipboard
const val IDLE_MILLIS: Int
Link copied to clipboard
const val JSONB: String
Link copied to clipboard

The columns of Wow's append (AggregateLogTable.COLUMNS), in its order, each with the type its text casts the parameter to.

Link copied to clipboard

A snapshot read by its key.

Link copied to clipboard
const val SAVE_GUARD: String

Wow's save guard: a higher version, of the same or a higher state revision.

Link copied to clipboard
const val SERVER_MILLIS: Int

Wow's server bounds at its default 30-second operation timeout: one second under it, and twice it.

Link copied to clipboard

The columns Wow's save writes, in its order, each with the type it binds (its text casts the jsonb ones).

Link copied to clipboard
const val UUID_SQL: String

Functions

Link copied to clipboard
fun appendOneText(partition: Int, streams: Int): String

Wow's group commit of one partition's streams (PostgresEventLogTables.appendGroup) for one table, on the clone: its text with raw_log and raw_partition for Wow's tables and branch 0 for its one table. Wow sends it for a group whose streams are all of one partition: every one-stream call, and of a call of n streams spread over the partitions about (1 / partitions)^(n - 1).

Link copied to clipboard
fun appendText(streams: Int): String

Wow's group commit across partitions (PostgresEventLogTables.appendGroupAcross) for one table, on the clone: its text with raw_log and raw_partition for Wow's tables and branch 0 for its one table.

Link copied to clipboard
fun bindTyped(statement: PreparedStatement, index: Int, type: String, value: Any?)

Binds value as Wow binds a parameter of type: by its type, a null as a null of its SQL type.

Link copied to clipboard
fun bound(synchronous: Boolean): String

Wow's bound of a transaction at its default 30-second operation timeout (PostgresTimeouts), as the first statement's prefix: synchronous_commit off unless synchronous, the statement and lock timeouts one second under it, idle in transaction twice it.

Link copied to clipboard
fun upsertText(rows: Int): String

Wow's save of rows snapshots (PostgresSnapshotTables.saveRows) on the clone: returning the keys it wrote.