Return SQL DDL statements to add all necessary foreign key constraints.
Return SQL DDL statements to add all necessary foreign key constraints.
(add-fk-constraints-sql {:keys [cdmTableName cdmFieldName isForeignKey
fkTableName fkFieldName]
:as field})
Return SQL DDL statements to add all indices to a CDM database.
Return SQL DDL statements to add all indices to a CDM database.
(create-field-sql {:keys [datatypes]}
{:keys [cdmFieldName isRequired isPrimaryKey cdmDatatype]})
Given a table field specification, return the :with-columns clauses for a :create-table operation.
Given a table field specification, return the :with-columns clauses for a :create-table operation.
(create-table-sql {:keys [constraints] :as opts} table-fields)
Given a CDM table specification, return SQL statements. Parameters: opts: a map with :- - constraints : true or false whether to add foreign key constraints - datatypes : map of CDM datatypes to SQL datatypes to use
Given a CDM table specification, return SQL statements. Parameters: opts: a map with :- - constraints : true or false whether to add foreign key constraints - datatypes : map of CDM datatypes to SQL datatypes to use
Return SQL DDL statements to create all CDM database tables.
Return SQL DDL statements to create all CDM database tables.
A map of OMOP CDM datatypes to SQL types
A map of OMOP CDM datatypes to SQL types
Return SQL DDL statements to drop all foreign key constraints.
Return SQL DDL statements to drop all foreign key constraints.
(drop-fk-constraints-sql {:keys [cdmTableName isForeignKey] :as field})
Return SQL DDL statements to drop all indices from a CDM database.
Return SQL DDL statements to drop all indices from a CDM database.
Return SQL DDL statements to drop all CDM database tables.
Return SQL DDL statements to drop all CDM database tables.
(fk-constraint-id {:keys [cdmTableName cdmFieldName]})
Generate a suitable identifier for a foreign key constraint.
Generate a suitable identifier for a foreign key constraint.
(foreign-key-sql {:keys [cdmFieldName isForeignKey fkTableName fkFieldName]})
Return SQL insert statement to insert data into the table specified. Returns 'nil' when no table definition for table specified.
Return SQL insert statement to insert data into the table specified. Returns 'nil' when no table definition for table specified.
(parsers table-fields)
Based on table fields, return a vector of parsers for import.
Based on table fields, return a vector of parsers for import.
These are the databases that will be tested; it is likely other databases with JDBC drivers would work. Any dialect-specific tweaks are provided within this namespace via multimethods.
These are the databases that will be tested; it is likely other databases with JDBC drivers would work. Any dialect-specific tweaks are provided within this namespace via multimethods.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close