Liking cljdoc? Tell your friends :D

specomatic-db.db.conversion

Provides conversions between entity types and database records / columns.

Provides conversions between entity types and database records / columns.
raw docstring

db-field-value->entity-field-valueclj

(db-field-value->entity-field-value fspec value)

Coerces field value with spec fspec from database into entity representation. Handles some common cases internally, delegates to db-field-value->entity-field-value-impl for everything else.

Coerces field `value` with spec `fspec` from database into entity representation.
Handles some common cases internally, delegates to db-field-value->entity-field-value-impl for everything else.
sourceraw docstring

db-field-value->entity-field-value-implcljmultimethod

Coerces field value with spec fspec from database into entity representation.

Coerces field `value` with spec `fspec` from database into entity representation.
sourceraw docstring

entity->rowclj

(entity->row db schema etype entity)

Converts an entity to a database table row.

Converts an entity to a database table row.
sourceraw docstring

entity-field-value->db-field-valueclj

(entity-field-value->db-field-value schema fspec value)

Coerces field value with spec fspec from entity into database representation. Can handle some common cases internally, delegates to entity-field-value->db-field-value-impl for everything else.

Coerces field `value` with spec `fspec` from entity into database representation.
Can handle some common cases internally, delegates to entity-field-value->db-field-value-impl for everything else.
sourceraw docstring

entity-field-value->db-field-value-implcljmultimethod

Coerces field value with spec fspec from entity into database representation.

Coerces field `value` with spec `fspec` from entity into database representation.
sourceraw docstring

etype->historic-query-table-keywordclj

(etype->historic-query-table-keyword etype etype-def)

Returns default table / view name for querying the history of given entity type etype.

Returns default table / view name for querying the history of given entity type `etype`.
sourceraw docstring

etype->id-columnclj

(etype->id-column db schema etype)

Returns table id column name for given entity type.

Returns table id column name for given entity type.
sourceraw docstring

etype->query-table-keywordclj

(etype->query-table-keyword etype etype-def)

Returns table / view name for querying given entity type etype.

Returns table / view name for querying given entity type `etype`.
sourceraw docstring

etype->table-nameclj

(etype->table-name db etype etype-def)

Returns the SQL table name for the db and entity type etype.

Returns the SQL table name for the `db` and entity type `etype`. 
sourceraw docstring

field->column-nameclj

(field->column-name db field field-def)

Returns the SQL column name for the db, field and field definition field-def.

Returns the SQL column name for the `db`, `field` and field definition `field-def`. 
sourceraw docstring

quotable-identifier-dispatchclj

(quotable-identifier-dispatch db _identifier)

Dispatch function for keyword->sql-identifier

Dispatch function for `keyword->sql-identifier`
sourceraw docstring

quotable-sql-identifiercljmultimethod

Returns the quotable SQL identifier (with adjusted case) for the given keyword k.

Returns the quotable SQL identifier (with adjusted case) for the given keyword `k`.
sourceraw docstring

valid-sql-identifier-keyword?clj

(valid-sql-identifier-keyword? k)

Checks if keyword k can be converted into a valid SQL identifier.

Checks if keyword `k` can be converted into a valid SQL identifier.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close