Basic Database Accessor which holds a JDBC connection.
- Companion
- object
Type members
Inherited types
Value members
Abstract methods
Concrete methods
Provides auto-commit session block.
Provides auto-commit session block.
- Type Params
- A
return type
- Value Params
- execution
block
- Returns
result value
Provides auto-commit session block.
Provides auto-commit session block.
- Type Params
- A
return type
- Value Params
- execution
block
- Returns
result value
Begins a new transaction if the other one does not already start.
Begins a new transaction if the other one does not already start.
returns the additional attributes of current JDBC connection.
returns the additional attributes of current JDBC connection.
Returns the current transaction. If the transaction has not started yet, IllegalStateException will be thrown.
Returns the current transaction. If the transaction has not started yet, IllegalStateException will be thrown.
- Returns
tx
Returns describe style string value for the table
Returns describe style string value for the table
- Value Params
- table
table name (with schema optionally)
- Returns
described information
Easy way to checkout the current connection to be used in a transaction that needs to be committed/rolled back depending on Future results.
Easy way to checkout the current connection to be used in a transaction that needs to be committed/rolled back depending on Future results.
- Type Params
- A
future result type
- Value Params
- execution
block that takes a session and returns a future
- Returns
future result
Returns columns resultset in schema.tableNames
Returns columns resultset in schema.tableNames
- Value Params
- meta
database meta data
- schema
schema name
- table
table name
- Returns
resultset related to columns
Returns all the column names on the matched table name
Returns all the column names on the matched table name
Returns table information if exists
Returns table information if exists
- Value Params
- table
table name (with schema optionally)
- Returns
table information
Returns all the table information that match the pattern
Returns all the table information that match the pattern
- Value Params
- tableNamePattern
table name pattern (with schema optionally)
- Returns
table information
Returns is the current transaction already started.
Returns is the current transaction already started.
- Returns
result
Returns is the current transaction is active.
Returns is the current transaction is active.
- Returns
result
Returns is the current transaction hasn't started yet.
Returns is the current transaction hasn't started yet.
- Returns
result
Provides local-tx session block.
Provides local-tx session block.
- Type Params
- A
return type
- Value Params
- execution
block
- Returns
result value
Provides local-tx session block.
Provides local-tx session block.
- Type Params
- A
return type
- Value Params
- execution
block
- Returns
result value
Provides read-only session block.
Provides read-only session block.
- Type Params
- A
return type
- Value Params
- execution
block
- Returns
result value
Provides read-only session block.
Provides read-only session block.
- Type Params
- A
return type
- Value Params
- execution
block
- Returns
result value
Rolls back the current transaction if the transaction is still active.
Rolls back the current transaction if the transaction is still active.
Returns table name list
Returns table name list
- Value Params
- tableNamePattern
table name pattern
- tableTypes
table types
- Returns
table name list
Returns the current transaction. If the transaction has not started yet, IllegalStateException will be thrown.
Returns the current transaction. If the transaction has not started yet, IllegalStateException will be thrown.
- Returns
tx
Provides within-tx session block.
Provides within-tx session block.
- Type Params
- A
return type
- Value Params
- execution
block
- Returns
result value
Inherited methods
Guarantees a Closeable resource will be closed after being passed to a block that takes the resource as a parameter and returns a Future.
Guarantees a Closeable resource will be closed after being passed to a block that takes the resource as a parameter and returns a Future.
- Inherited from
- LoanPattern