H2 utility functions and DDL helpers.
H2 utility functions and DDL helpers.
(analyze-table datasource table-name)Update H2 table statistics for better query planning.
Args: datasource: H2 datasource table-name: Table name to analyze
Update H2 table statistics for better query planning. Args: datasource: H2 datasource table-name: Table name to analyze
(auto-increment-primary-key)Get H2 auto-increment primary key definition.
Get H2 auto-increment primary key definition.
(boolean-column-type)Get H2 boolean column type definition.
Get H2 boolean column type definition.
(create-test-context)(create-test-context db-name)Create H2 in-memory database context for testing.
Args: db-name: Optional database name (defaults to random UUID)
Returns: Database context ready for testing
Create H2 in-memory database context for testing. Args: db-name: Optional database name (defaults to random UUID) Returns: Database context ready for testing
(explain-query datasource query-map)Get H2 query execution plan.
Args: datasource: H2 datasource query-map: HoneySQL query map
Returns: Vector of execution plan rows
Get H2 query execution plan. Args: datasource: H2 datasource query-map: HoneySQL query map Returns: Vector of execution plan rows
(show-indexes datasource)(show-indexes datasource table-name)List all indexes in H2 database.
Args: datasource: H2 datasource table-name: Optional table name to filter indexes
Returns: Vector of index information
List all indexes in H2 database. Args: datasource: H2 datasource table-name: Optional table name to filter indexes Returns: Vector of index information
(show-tables datasource)List all tables in H2 database.
Args: datasource: H2 datasource
Returns: Vector of table names
List all tables in H2 database. Args: datasource: H2 datasource Returns: Vector of table names
(timestamp-column-type)Get H2 timestamp column type definition.
Get H2 timestamp column type definition.
(uuid-column-type)Get H2 UUID column type definition.
H2 has native UUID support, but we use VARCHAR for compatibility.
Get H2 UUID column type definition. H2 has native UUID support, but we use VARCHAR for compatibility.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |