Liking cljdoc? Tell your friends :D

com.eldrix.iort.impl.sql


add-constraints-sqlcljmultimethod

Return SQL DDL statements to add all necessary foreign key constraints.

Return SQL DDL statements to add all necessary foreign key constraints.
sourceraw docstring

add-fk-constraints-sqlclj

(add-fk-constraints-sql {:keys [cdmTableName cdmFieldName isForeignKey
                                fkTableName fkFieldName]
                         :as field})
source

add-idx-sqlclj

(add-idx-sql {:keys [cdmTableName cdmFieldName] :as field})
source

add-indices-sqlcljmultimethod

Return SQL DDL statements to add all indices to a CDM database.

Return SQL DDL statements to add all indices to a CDM database.
sourceraw docstring

add-table-constraints-sqlclj

(add-table-constraints-sql table-fields)
source

add-table-indicesclj

(add-table-indices table-fields)
source

cdmDatatype->parserclj

source

create-field-sqlclj

(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.
sourceraw docstring

create-table-sqlclj

(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 
sourceraw docstring

create-tables-sqlcljmultimethod

Return SQL DDL statements to create all CDM database tables.

Return SQL DDL statements to create all CDM database tables.
sourceraw docstring

default-datatypesclj

A map of OMOP CDM datatypes to SQL types

A map of OMOP CDM datatypes to SQL types
sourceraw docstring

drop-constraints-sqlcljmultimethod

Return SQL DDL statements to drop all foreign key constraints.

Return SQL DDL statements to drop all foreign key constraints.
sourceraw docstring

drop-fk-constraints-sqlclj

(drop-fk-constraints-sql {:keys [cdmTableName isForeignKey] :as field})
source

drop-idx-sqlclj

(drop-idx-sql field)
source

drop-indices-sqlcljmultimethod

Return SQL DDL statements to drop all indices from a CDM database.

Return SQL DDL statements to drop all indices from a CDM database.
sourceraw docstring

drop-table-constraints-sqlclj

(drop-table-constraints-sql table-fields)
source

drop-table-indicesclj

(drop-table-indices table-fields)
source

drop-table-sqlclj

(drop-table-sql table-name)
source

drop-tables-sqlcljmultimethod

Return SQL DDL statements to drop all CDM database tables.

Return SQL DDL statements to drop all CDM database tables.
sourceraw docstring

fk-constraint-idclj

(fk-constraint-id {:keys [cdmTableName cdmFieldName]})

Generate a suitable identifier for a foreign key constraint.

Generate a suitable identifier for a foreign key constraint.
sourceraw docstring

foreign-key-sqlclj

(foreign-key-sql {:keys [cdmFieldName isForeignKey fkTableName fkFieldName]})
source

foreign-keys-sqlclj

(foreign-keys-sql table-fields)
source

formatclj

(format x)
source

idx-nameclj

(idx-name {:keys [cdmTableName cdmFieldName]})
source

insert-sqlcljmultimethod

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.
sourceraw docstring

insert-sql*clj

(insert-sql* {:keys [cdmFields cdmTableName] :as table})
source

parse-cdm-dateclj

(parse-cdm-date s)
source

parsersclj

(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.
sourceraw docstring

supported-dialectsclj

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.
sourceraw docstring

upsert-sqlclj

(upsert-sql {:keys [cdmFields cdmTableName] :as table})
source

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

× close