Provides conversions between entity types and database records / columns.
Provides conversions between entity types and database records / columns.
(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.
Coerces field value
with spec fspec
from database into entity representation.
Coerces field `value` with spec `fspec` from database into entity representation.
(entity->row db schema etype entity)
Converts an entity to a database table row.
Converts an entity to a database table row.
(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.
Coerces field value
with spec fspec
from entity into database representation.
Coerces field `value` with spec `fspec` from entity into database representation.
(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`.
(etype->id-column db schema etype)
Returns table id column name for given entity type.
Returns table id column name for given entity type.
(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`.
(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`.
(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`.
(quotable-identifier-dispatch db _identifier)
Dispatch function for keyword->sql-identifier
Dispatch function for `keyword->sql-identifier`
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`.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close