Liking cljdoc? Tell your friends :D

wagoe.platform.shell.adapters.database.h2.utils

H2 utility functions and DDL helpers.

H2 utility functions and DDL helpers.
raw docstring

analyze-tableclj

(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
sourceraw docstring

auto-increment-primary-keyclj

(auto-increment-primary-key)

Get H2 auto-increment primary key definition.

Get H2 auto-increment primary key definition.
sourceraw docstring

boolean-column-typeclj

(boolean-column-type)

Get H2 boolean column type definition.

Get H2 boolean column type definition.
sourceraw docstring

create-test-contextclj

(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
sourceraw docstring

explain-queryclj

(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
sourceraw docstring

show-indexesclj

(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
sourceraw docstring

show-tablesclj

(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
sourceraw docstring

timestamp-column-typeclj

(timestamp-column-type)

Get H2 timestamp column type definition.

Get H2 timestamp column type definition.
sourceraw docstring

uuid-column-typeclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close