Liking cljdoc? Tell your friends :D

wagoe.platform.shell.adapters.database.common.core

Common database operations - main coordination module.

This namespace serves as the main coordinator for common database functionality, bringing together specialized modules for different aspects of database operations that work across all adapter types.

The common functionality has been refactored into specialized namespaces:

  • common.connection: Connection pool management with HikariCP
  • common.execution: Query execution with logging and error handling
  • common.schema: Schema introspection and DDL execution
  • common.utils: Database information and convenience functions
  • common.core: Main coordination module (this namespace)

Pure query building functions are now in wagoe.platform.core.database.query

This modular structure provides:

  • Better organization with focused responsibilities
  • Easier maintenance and testing
  • Consistent patterns across all database adapters
  • Clear separation of concerns
Common database operations - main coordination module.

This namespace serves as the main coordinator for common database
functionality, bringing together specialized modules for different
aspects of database operations that work across all adapter types.

The common functionality has been refactored into specialized namespaces:
- common.connection: Connection pool management with HikariCP
- common.execution: Query execution with logging and error handling
- common.schema: Schema introspection and DDL execution
- common.utils: Database information and convenience functions
- common.core: Main coordination module (this namespace)

Pure query building functions are now in wagoe.platform.core.database.query

This modular structure provides:
- Better organization with focused responsibilities
- Easier maintenance and testing
- Consistent patterns across all database adapters
- Clear separation of concerns
raw docstring

build-orderingclj

source

build-paginationclj

source

build-where-clauseclj

source

close-connection-pool!clj

source

create-connection-poolclj

source

create-index-if-not-exists!clj

source

database-infoclj

source

db-context?clj

source

execute-batch!clj

source

execute-ddl!clj

source

execute-one!clj

source

execute-query!clj

source

execute-update!clj

source

format-sqlclj

source

format-sql*clj

source

get-table-infoclj

source

list-tablesclj

source

table-exists?clj

source

validate-adapterclj

source

validate-contextclj

source

with-transactioncljmacro

(with-transaction binding & body)

Macro for database transaction management with consistent error handling.

Args: binding: [tx-var ctx] body: Expressions to execute within transaction

Example: (with-transaction [tx ctx] (execute-update! tx query1) (execute-update! tx query2))

Macro for database transaction management with consistent error handling.

Args:
  binding: [tx-var ctx]
  body: Expressions to execute within transaction

Example:
  (with-transaction [tx ctx]
    (execute-update! tx query1)
    (execute-update! tx query2))
sourceraw docstring

with-transaction*clj

source

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