Liking cljdoc? Tell your friends :D

wagoe.platform.shell.adapters.database.sqlite.utils

SQLite utility functions and DDL helpers.

SQLite utility functions and DDL helpers.
raw docstring

analyze-databaseclj

(analyze-database datasource)
(analyze-database datasource table-name)

Update SQLite database statistics for better query planning.

Args: datasource: SQLite datasource table-name: Optional specific table name

Returns: nil - side effects only

Update SQLite database statistics for better query planning.

Args:
  datasource: SQLite datasource
  table-name: Optional specific table name
  
Returns:
  nil - side effects only
sourceraw docstring

autoincrement-primary-keyclj

(autoincrement-primary-key)

Get SQLite autoincrement primary key definition.

Use with caution - AUTOINCREMENT has performance implications.

Get SQLite autoincrement primary key definition.

Use with caution - AUTOINCREMENT has performance implications.
sourceraw docstring

boolean-column-typeclj

(boolean-column-type)

Get SQLite boolean column type definition.

SQLite doesn't have native boolean type, uses INTEGER.

Get SQLite boolean column type definition.

SQLite doesn't have native boolean type, uses INTEGER.
sourceraw docstring

create-database-urlclj

(create-database-url database-path & [options])

Create SQLite JDBC URL from file path.

Args: database-path: Path to SQLite database file options: Optional map of connection parameters

Returns: JDBC URL string

Create SQLite JDBC URL from file path.

Args:
  database-path: Path to SQLite database file
  options: Optional map of connection parameters

Returns:
  JDBC URL string
sourceraw docstring

database-infoclj

(database-info datasource)

Get SQLite database information and settings.

Args: datasource: SQLite datasource

Returns: Map with database information

Get SQLite database information and settings.

Args:
  datasource: SQLite datasource
  
Returns:
  Map with database information
sourceraw docstring

explain-queryclj

(explain-query datasource query-map)
(explain-query datasource query-map query-plan?)

Get SQLite query execution plan.

Args: datasource: SQLite datasource query-map: HoneySQL query map query-plan: Optional - use 'query-plan' for detailed analysis

Returns: Vector of execution plan steps

Get SQLite query execution plan.

Args:
  datasource: SQLite datasource
  query-map: HoneySQL query map
  query-plan: Optional - use 'query-plan' for detailed analysis
  
Returns:
  Vector of execution plan steps
sourceraw docstring

integer-primary-keyclj

(integer-primary-key)

Get SQLite integer primary key definition.

INTEGER PRIMARY KEY in SQLite is an alias for ROWID.

Get SQLite integer primary key definition.

INTEGER PRIMARY KEY in SQLite is an alias for ROWID.
sourceraw docstring

list-indexesclj

(list-indexes datasource)
(list-indexes datasource table-name)

List all indexes in SQLite database.

Args: datasource: SQLite datasource table-name: Optional specific table name

Returns: Vector of index information maps

List all indexes in SQLite database.

Args:
  datasource: SQLite datasource
  table-name: Optional specific table name
  
Returns:
  Vector of index information maps
sourceraw docstring

list-tablesclj

(list-tables datasource)

List all tables in SQLite database.

Args: datasource: SQLite datasource

Returns: Vector of table names

List all tables in SQLite database.

Args:
  datasource: SQLite datasource
  
Returns:
  Vector of table names
sourceraw docstring

reindex-databaseclj

(reindex-database datasource)
(reindex-database datasource index-name)

Rebuild SQLite indexes for better performance.

Args: datasource: SQLite datasource index-name: Optional specific index name

Returns: nil - side effects only

Rebuild SQLite indexes for better performance.

Args:
  datasource: SQLite datasource
  index-name: Optional specific index name
  
Returns:
  nil - side effects only
sourceraw docstring

timestamp-column-typeclj

(timestamp-column-type)

Get SQLite timestamp column type definition.

SQLite stores timestamps as TEXT in ISO8601 format.

Get SQLite timestamp column type definition.

SQLite stores timestamps as TEXT in ISO8601 format.
sourceraw docstring

uuid-column-typeclj

(uuid-column-type)

Get SQLite UUID column type definition.

SQLite stores UUIDs as TEXT.

Get SQLite UUID column type definition.

SQLite stores UUIDs as TEXT.
sourceraw docstring

vacuum-databaseclj

(vacuum-database datasource)
(vacuum-database datasource into-file)

Vacuum SQLite database to reclaim space and defragment.

Args: datasource: SQLite datasource into-file: Optional file path for VACUUM INTO operation

Returns: nil - side effects only

Vacuum SQLite database to reclaim space and defragment.

Args:
  datasource: SQLite datasource
  into-file: Optional file path for VACUUM INTO operation
  
Returns:
  nil - side effects only
sourceraw docstring

varchar-uuid-column-typeclj

(varchar-uuid-column-type)

Get SQLite varchar UUID column type definition.

Get SQLite varchar UUID column type definition.
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