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

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__3456__auto__ & args__3457__auto__])
source

big-serialclj

(big-serial & [arg0__3456__auto__ & args__3457__auto__])
source

binaryclj

(binary & [arg0__3456__auto__ & args__3457__auto__])
source

blobclj

(blob & [arg0__3456__auto__ & args__3457__auto__])
source

boolclj

(bool & [arg0__3456__auto__ & args__3457__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

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__3456__auto__ & args__3457__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

columnsclj

(columns)

Inputs: [] Returns: Columns

Inputs: []
Returns: Columns
sourceraw docstring

columns?clj

(columns? x)

Inputs: [x :- Any] Returns: Boolean

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

constraintclj

(constraint & [arg0 & args])

Define a named constraint. Use with an index fn.

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

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__3456__auto__ & args__3457__auto__])
source

datetimeclj

(datetime & [arg0__3456__auto__ & args__3457__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

decimalclj

(decimal & [arg0__3456__auto__ & args__3457__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

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__3456__auto__ & args__3457__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

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__3456__auto__ & args__3457__auto__])
source

float'clj

(float' & [arg0__3456__auto__ & args__3457__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

fulltextclj

(fulltext & [arg0__3766__auto__ & args__3767__auto__])
source

geometryclj

(geometry & [arg0__3456__auto__ & args__3457__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__3766__auto__ & args__3767__auto__])
source

index?clj

(index? x)

Inputs: [x :- Any] Returns: Boolean

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

integerclj

(integer & [arg0__3456__auto__ & args__3457__auto__])
source

KeywordOrSymclj

Keyword or symbol type definition.

Keyword or symbol type definition.
sourceraw docstring

linestringclj

(linestring & [arg0__3456__auto__ & args__3457__auto__])
source

medium-intclj

(medium-int & [arg0__3456__auto__ & args__3457__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__3456__auto__ & args__3457__auto__])
source

polygonclj

(polygon & [arg0__3456__auto__ & args__3457__auto__])
source

primary-keyclj

(primary-key & [arg0__3766__auto__ & args__3767__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

serialclj

(serial & [arg0__3456__auto__ & args__3457__auto__])
source

set'clj

(set' & [arg0__3456__auto__ & args__3457__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

small-intclj

(small-int & [arg0__3456__auto__ & args__3457__auto__])
source

small-serialclj

(small-serial & [arg0__3456__auto__ & args__3457__auto__])
source

spatialclj

(spatial & [arg0__3766__auto__ & args__3767__auto__])
source

strict-map->AddColumnSpecclj

(strict-map->AddColumnSpec m3386 & [drop-extra-keys?__1991__auto__])

Factory function for class AddColumnSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class AddColumnSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->AddIndexSpecclj

(strict-map->AddIndexSpec m4315 & [drop-extra-keys?__1991__auto__])

Factory function for class AddIndexSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class AddIndexSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->ChangeSpecclj

(strict-map->ChangeSpec m4361 & [drop-extra-keys?__1991__auto__])

Factory function for class ChangeSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class ChangeSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->ColumnPositionclj

(strict-map->ColumnPosition m3317 & [drop-extra-keys?__1991__auto__])

Factory function for class ColumnPosition, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class ColumnPosition, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->Columnsclj

(strict-map->Columns m4116 & [drop-extra-keys?__1991__auto__])

Factory function for class Columns, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class Columns, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->ColumnSpecclj

(strict-map->ColumnSpec m3241 & [drop-extra-keys?__1991__auto__])

Factory function for class ColumnSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class ColumnSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->ConstraintSpecclj

(strict-map->ConstraintSpec m3891 & [drop-extra-keys?__1991__auto__])

Factory function for class ConstraintSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class ConstraintSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->DBSpecclj

(strict-map->DBSpec m3101 & [drop-extra-keys?__1991__auto__])

Factory function for class DBSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class DBSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->DefaultValueSpecclj

(strict-map->DefaultValueSpec m3179 & [drop-extra-keys?__1991__auto__])

Factory function for class DefaultValueSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class DefaultValueSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->DropColumnSpecclj

(strict-map->DropColumnSpec m4566 & [drop-extra-keys?__1991__auto__])

Factory function for class DropColumnSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class DropColumnSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->DropDefaultSpecclj

(strict-map->DropDefaultSpec m4503 & [drop-extra-keys?__1991__auto__])

Factory function for class DropDefaultSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class DropDefaultSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->DropForeignKeySpecclj

(strict-map->DropForeignKeySpec m4747 & [drop-extra-keys?__1991__auto__])

Factory function for class DropForeignKeySpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class DropForeignKeySpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->DropIndexSpecclj

(strict-map->DropIndexSpec m4629 & [drop-extra-keys?__1991__auto__])

Factory function for class DropIndexSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class DropIndexSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->DropPrimaryKeySpecclj

(strict-map->DropPrimaryKeySpec m4692 & [drop-extra-keys?__1991__auto__])

Factory function for class DropPrimaryKeySpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class DropPrimaryKeySpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->ForeignKeySpecclj

(strict-map->ForeignKeySpec m3820 & [drop-extra-keys?__1991__auto__])

Factory function for class ForeignKeySpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class ForeignKeySpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->IndexSpecclj

(strict-map->IndexSpec m3697 & [drop-extra-keys?__1991__auto__])

Factory function for class IndexSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class IndexSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->RenameSpecclj

(strict-map->RenameSpec m4810 & [drop-extra-keys?__1991__auto__])

Factory function for class RenameSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class RenameSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->SetDefaultSpecclj

(strict-map->SetDefaultSpec m4432 & [drop-extra-keys?__1991__auto__])

Factory function for class SetDefaultSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class SetDefaultSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->TableOptionclj

(strict-map->TableOption m4198 & [drop-extra-keys?__1991__auto__])

Factory function for class TableOption, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class TableOption, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->TableSpecclj

(strict-map->TableSpec m3973 & [drop-extra-keys?__1991__auto__])

Factory function for class TableSpec, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class TableSpec, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

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

TableOrDBclj

Table spec or DB spec type definition.

Table spec or DB spec type definition.
sourceraw docstring

temp-tableclj

(temp-table table-name)

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

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

textclj

(text & [arg0__3456__auto__ & args__3457__auto__])
source

time'clj

(time' & [arg0__3456__auto__ & args__3457__auto__])
source

timestampclj

(timestamp & [arg0__3456__auto__ & args__3457__auto__])
source

tiny-intclj

(tiny-int & [arg0__3456__auto__ & args__3457__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__3766__auto__ & args__3767__auto__])
source

varbinaryclj

(varbinary & [arg0__3456__auto__ & args__3457__auto__])
source

varcharclj

(varchar & [arg0__3456__auto__ & args__3457__auto__])
source

WhatsMyNamecljprotocol

whats-my-nameclj

(whats-my-name x)
source

yearclj

(year & [arg0__3456__auto__ & args__3457__auto__])
source

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

× close