Liking cljdoc? Tell your friends :D

stch.sql.ddl

SQL DSL for data definition language (DDL). Supports a majority of MySQL's statements for tables and databases.

SQL DSL for data definition language (DDL).
Supports a majority of MySQL's statements for
tables and databases.
raw docstring

addclj

(add m spec)
(add m spec options)

Inputs: [m :- TableSpec spec] [m :- TableSpec spec options] Returns: TableSpec

Add column/index. Use with alt.

Inputs: [m :- TableSpec spec] [m :- TableSpec spec options]
Returns: TableSpec

Add column/index. Use with alt.
sourceraw docstring

AddColumnSpecclj

source

AddIndexSpecclj

source

afterclj

(after col)

Inputs: [col :- NamedOrColumn] Returns: ColumnPosition

Set column position. Use with add.

Inputs: [col :- NamedOrColumn]
Returns: ColumnPosition

Set column position. Use with add.
sourceraw docstring

altclj

(alt spec)

Inputs: [spec :- TableSpec] Returns: String

Alter a table.

Inputs: [spec :- TableSpec]
Returns: String

Alter a table.
sourceraw docstring

alt-dbclj

(alt-db db option)

Inputs: [db :- NamedOrDB, option :- TableOption] Returns: String

Alter a database.

Inputs: [db :- NamedOrDB, option :- TableOption]
Returns: String

Alter a database.
sourceraw docstring

AlterAddcljprotocol

-addclj

(-add spec m)
(-add spec m options)
source

appendclj

(append m x)

Inputs: [m :- TableSpec, x :- (U Columns ColumnSpec Index)] Returns: TableSpec

Append a set of columns/indexes or single column/index to a table.

Inputs: [m :- TableSpec, x :- (U Columns ColumnSpec Index)]
Returns: TableSpec

Append a set of columns/indexes or single
column/index to a table.
sourceraw docstring

auto-incclj

(auto-inc start)

Inputs: [start :- Int] Returns: TableOption

Set the auto-increment table option.

Inputs: [start :- Int]
Returns: TableOption

Set the auto-increment table option.
sourceraw docstring

big-intclj

(big-int & [arg0__3405__auto__ & args__3406__auto__])
source

big-serialclj

(big-serial & [arg0__3405__auto__ & args__3406__auto__])
source

binaryclj

(binary & [arg0__3405__auto__ & args__3406__auto__])
source

blobclj

(blob & [arg0__3405__auto__ & args__3406__auto__])
source

boolclj

(bool & [arg0__3405__auto__ & args__3406__auto__])
source

changeclj

(change m col col-spec)

Inputs: [m :- TableSpec, col :- NamedOrColumn, col-spec :- ColumnSpec] Returns: TableSpec

Change column. Use with alt.

Inputs: [m :- TableSpec, col :- NamedOrColumn, col-spec :- ColumnSpec]
Returns: TableSpec

Change column. Use with alt.
sourceraw docstring

ChangeSpecclj

source

char'clj

source

character-setclj

(character-set charset)

Inputs: [charset :- Named] Returns: TableOption

Set the character set table option.

Inputs: [charset :- Named]
Returns: TableOption

Set the character set table option.
sourceraw docstring

chrclj

(chr & [arg0__3405__auto__ & args__3406__auto__])
source

collateclj

(collate collation)

Inputs: [collation :- Named] Returns: TableOption

Set the collate table option.

Inputs: [collation :- Named]
Returns: TableOption

Set the collate table option.
sourceraw docstring

columnclj

(column col-name col-type options)

Inputs: [col-name col-type options] Returns: ColumnSpec

Inputs: [col-name col-type options]
Returns: ColumnSpec
sourceraw docstring

column?clj

(column? x)

Inputs: [x :- Any] Returns: Boolean

Inputs: [x :- Any]
Returns: Boolean
sourceraw docstring

ColumnOptionsclj

Column options type definition.

Column options type definition.
sourceraw docstring

ColumnOrIndexclj

Column or index type definition.

Column or index type definition.
sourceraw docstring

ColumnPositionclj

source

columnsclj

(columns)

Inputs: [] Returns: Columns

Inputs: []
Returns: Columns
sourceraw docstring

Columnsclj

source

columns?clj

(columns? x)

Inputs: [x :- Any] Returns: Boolean

Inputs: [x :- Any]
Returns: Boolean
sourceraw docstring

ColumnSpecclj

source

constraintclj

(constraint & [arg0 & args])

Define a named constraint. Use with an index fn.

Define a named constraint. Use with an index fn.
sourceraw docstring

ConstraintSpecclj

source

createclj

(create spec & options)

Inputs: [spec :- TableOrDB & options :- [TableOption]] Returns: String

Create a table or database with options.

Inputs: [spec :- TableOrDB & options :- [TableOption]]
Returns: String

Create a table or database with options.
sourceraw docstring

dateclj

(date & [arg0__3405__auto__ & args__3406__auto__])
source

datetimeclj

(datetime & [arg0__3405__auto__ & args__3406__auto__])
source

dbclj

(db db-name)

Inputs: [db-name :- Named] Returns: DBSpec

Create a database.

Inputs: [db-name :- Named]
Returns: DBSpec

Create a database.
sourceraw docstring

db?clj

(db? x)

Inputs: [x :- Any] Returns: Boolean

Inputs: [x :- Any]
Returns: Boolean
sourceraw docstring

DBSpecclj

source

decimalclj

(decimal & [arg0__3405__auto__ & args__3406__auto__])
source

defaultclj

(default x)

Inputs: [x :- (U Number String)] Returns: DefaultValueSpec

Set the default value for a column. Use with a column fn.

Inputs: [x :- (U Number String)]
Returns: DefaultValueSpec

Set the default value for a column.
Use with a column fn.
sourceraw docstring

DefaultValueSpecclj

source

defcolumnscljmacro

(defcolumns name & columns+keys)

Define one or more columns.

Define one or more columns.
sourceraw docstring

defindexfncljmacro

(defindexfn fn-name index-type)

Define an index fn.

Define an index fn.
sourceraw docstring

deftablecljmacro

(deftable table-name & columns+keys)
source

deftypefncljmacro

(deftypefn fn-name col-type)

Define a type fn (e.g., int, varchar).

Define a type fn (e.g., int, varchar).
sourceraw docstring

double'clj

(double' & [arg0__3405__auto__ & args__3406__auto__])
source

drop-columnclj

(drop-column m col)

Inputs: [m :- TableSpec, col :- NamedOrColumn] Returns: TableSpec

Drop a column. Use with alt.

Inputs: [m :- TableSpec, col :- NamedOrColumn]
Returns: TableSpec

Drop a column. Use with alt.
sourceraw docstring

drop-dbclj

(drop-db db)

Inputs: [db :- NamedOrDB] Returns: String

Drop a database.

Inputs: [db :- NamedOrDB]
Returns: String

Drop a database.
sourceraw docstring

drop-defaultclj

(drop-default m col)

Inputs: [m :- TableSpec, col :- NamedOrColumn] Returns: TableSpec

Drop column default. Use with alt.

Inputs: [m :- TableSpec, col :- NamedOrColumn]
Returns: TableSpec

Drop column default. Use with alt.
sourceraw docstring

drop-foreign-keyclj

(drop-foreign-key m fk)

Inputs: [m :- TableSpec, fk :- NamedOrConstraint] Returns: TableSpec

Drop a foreign key. Use with alt.

Inputs: [m :- TableSpec, fk :- NamedOrConstraint]
Returns: TableSpec

Drop a foreign key. Use with alt.
sourceraw docstring

drop-indexclj

(drop-index m index)

Inputs: [m :- TableSpec, index :- NamedOrConstraint] Returns: TableSpec

Drop an index. Use with alt.

Inputs: [m :- TableSpec, index :- NamedOrConstraint]
Returns: TableSpec

Drop an index. Use with alt.
sourceraw docstring

drop-primary-keyclj

(drop-primary-key m)

Inputs: [m :- TableSpec] Returns: TableSpec

Drop a primary key. Use with alt.

Inputs: [m :- TableSpec]
Returns: TableSpec

Drop a primary key. Use with alt.
sourceraw docstring

drop-tableclj

(drop-table & tables)

Inputs: [& tables :- [NamedOrTable]] Returns: String

Drop one or more tables.

Inputs: [& tables :- [NamedOrTable]]
Returns: String

Drop one or more tables.
sourceraw docstring

drop-temp-tableclj

(drop-temp-table & tables)

Inputs: [& tables :- [NamedOrTable]] Returns: String

Drop one or more tables.

Inputs: [& tables :- [NamedOrTable]]
Returns: String

Drop one or more tables.
sourceraw docstring

DropColumnSpecclj

source

DropDefaultSpecclj

source

DropForeignKeySpecclj

source

DropIndexSpecclj

source

DropPrimaryKeySpecclj

source

engineclj

(engine eng)

Inputs: [eng :- Named] Returns: TableOption

Set the engine table option.

Inputs: [eng :- Named]
Returns: TableOption

Set the engine table option.
sourceraw docstring

enumclj

(enum & [arg0__3405__auto__ & args__3406__auto__])
source

float'clj

(float' & [arg0__3405__auto__ & args__3406__auto__])
source

foreign-keyclj

(foreign-key & [arg0 & args])

Define a foreign key. Use with create or alt.

Define a foreign key. Use with create or alt.
sourceraw docstring

ForeignKeySpecclj

source

fulltextclj

(fulltext & [arg0__3715__auto__ & args__3716__auto__])
source

geometryclj

(geometry & [arg0__3405__auto__ & args__3406__auto__])
source

idxclj

(idx index-type index-cols)

Inputs: [index-type index-cols] Returns: IndexSpec

Inputs: [index-type index-cols]
Returns: IndexSpec
sourceraw docstring

Indexclj

Index type definition.

Index type definition.
sourceraw docstring

indexclj

(index & [arg0__3715__auto__ & args__3716__auto__])
source

index?clj

(index? x)

Inputs: [x :- Any] Returns: Boolean

Inputs: [x :- Any]
Returns: Boolean
sourceraw docstring

IndexSpecclj

source

integerclj

(integer & [arg0__3405__auto__ & args__3406__auto__])
source

KeywordOrSymclj

Keyword or symbol type definition.

Keyword or symbol type definition.
sourceraw docstring

linestringclj

(linestring & [arg0__3405__auto__ & args__3406__auto__])
source

medium-intclj

(medium-int & [arg0__3405__auto__ & args__3406__auto__])
source

NamedOrColumnclj

Named or column spec type definition.

Named or column spec type definition.
sourceraw docstring

NamedOrConstraintclj

source

NamedOrDBclj

Named or DB spec type definition.

Named or DB spec type definition.
sourceraw docstring

NamedOrTableclj

Named or table spec type definition.

Named or table spec type definition.
sourceraw docstring

pointclj

(point & [arg0__3405__auto__ & args__3406__auto__])
source

polygonclj

(polygon & [arg0__3405__auto__ & args__3406__auto__])
source

primary-keyclj

(primary-key & [arg0__3715__auto__ & args__3716__auto__])
source

renameclj

(rename m table)

Inputs: [m :- TableSpec, table :- NamedOrTable] Returns: TableSpec

Rename a table. Use with alt.

Inputs: [m :- TableSpec, table :- NamedOrTable]
Returns: TableSpec

Rename a table. Use with alt.
sourceraw docstring

rename-dbclj

(rename-db old-db new-db)

Inputs: [old-db :- NamedOrDB, new-db :- NamedOrDB] Returns: String

Rename a database.

Inputs: [old-db :- NamedOrDB, new-db :- NamedOrDB]
Returns: String

Rename a database.
sourceraw docstring

RenameSpecclj

source

serialclj

(serial & [arg0__3405__auto__ & args__3406__auto__])
source

set'clj

(set' & [arg0__3405__auto__ & args__3406__auto__])
source

set-defaultclj

(set-default m col default)

Inputs: [m :- TableSpec, col :- NamedOrColumn, default :- (U String Number)] Returns: TableSpec

Set column default. Use with alt.

Inputs: [m :- TableSpec, col :- NamedOrColumn, default :- (U String Number)]
Returns: TableSpec

Set column default. Use with alt.
sourceraw docstring

SetDefaultSpecclj

source

small-intclj

(small-int & [arg0__3405__auto__ & args__3406__auto__])
source

small-serialclj

(small-serial & [arg0__3405__auto__ & args__3406__auto__])
source

spatialclj

(spatial & [arg0__3715__auto__ & args__3716__auto__])
source

t-map->AddColumnSpecclj

source

t-map->AddIndexSpecclj

source

t-map->ChangeSpecclj

source

t-map->ColumnPositionclj

source

t-map->Columnsclj

source

t-map->ColumnSpecclj

source

t-map->ConstraintSpecclj

source

t-map->DBSpecclj

source

t-map->DefaultValueSpecclj

source

t-map->DropColumnSpecclj

source

t-map->DropDefaultSpecclj

source

t-map->DropForeignKeySpecclj

source

t-map->DropIndexSpecclj

source

t-map->DropPrimaryKeySpecclj

source

t-map->ForeignKeySpecclj

source

t-map->IndexSpecclj

source

t-map->RenameSpecclj

source

t-map->SetDefaultSpecclj

source

t-map->TableOptionclj

source

t-map->TableSpecclj

source

tableclj

(table table-name)

Inputs: [table-name :- Named] Returns: TableSpec

Inputs: [table-name :- Named]
Returns: TableSpec
sourceraw docstring

table?clj

(table? x)

Inputs: [x :- Any] Returns: Boolean

Inputs: [x :- Any]
Returns: Boolean
sourceraw docstring

TableOptionclj

source

TableOrDBclj

Table spec or DB spec type definition.

Table spec or DB spec type definition.
sourceraw docstring

TableSpecclj

source

temp-tableclj

(temp-table table-name)

Inputs: [table-name :- Named] Returns: TableSpec

Inputs: [table-name :- Named]
Returns: TableSpec
sourceraw docstring

textclj

(text & [arg0__3405__auto__ & args__3406__auto__])
source

time'clj

(time' & [arg0__3405__auto__ & args__3406__auto__])
source

timestampclj

(timestamp & [arg0__3405__auto__ & args__3406__auto__])
source

tiny-intclj

(tiny-int & [arg0__3405__auto__ & args__3406__auto__])
source

ToSQLcljprotocol

Convert an object to SQL.

Convert an object to SQL.

to-sqlclj

(to-sql x)
sourceraw docstring

truncateclj

(truncate table)

Inputs: [table :- NamedOrTable] Returns: String

Truncate a table.

Inputs: [table :- NamedOrTable]
Returns: String

Truncate a table.
sourceraw docstring

uniqueclj

(unique & [arg0__3715__auto__ & args__3716__auto__])
source

varbinaryclj

(varbinary & [arg0__3405__auto__ & args__3406__auto__])
source

varcharclj

(varchar & [arg0__3405__auto__ & args__3406__auto__])
source

WhatsMyNamecljprotocol

whats-my-nameclj

(whats-my-name x)
source

yearclj

(year & [arg0__3405__auto__ & args__3406__auto__])
source

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

× close