DatabaseClient

constructor(vertxSqlClient: VertxSqlClientT, config: DatabaseClientConfig)(source)

Parameters

VertxSqlClientT

the type of Vert.x SQL client, which can be SqlClient, Pool, or SqlConnection or one of its database-specific subtypes.

vertxSqlClient

the Vert.x SQL client used for executing queries.

config

the configuration for this client, including SQL transformation, transaction settings, and the transaction provider for SQL statement preparation.


constructor(vertxSqlClient: VertxSqlClientT, exposedDatabase: Database, config: DatabaseClientConfig)(source)

Deprecated

Use the primary constructor with a transaction provider in config. Create a config appropriate for your database, e.g. PgDatabaseClientConfig(JdbcTransactionExposedTransactionProvider(exposedDatabase)), MysqlDatabaseClientConfig(JdbcTransactionExposedTransactionProvider(exposedDatabase)), OracleDatabaseClientConfig(...), or MssqlDatabaseClientConfig(...).

Secondary constructor that accepts a Database for backward compatibility.

Parameters

vertxSqlClient

the Vert.x SQL client used for executing queries.

exposedDatabase

the Exposed Database used for SQL generation.

config

the configuration for this client.