Structured representation of SQL Link to relational algebra
Structured representation of SQL Link to relational algebra
(->sql-expr-app rator rands)
Positional factory function for class sqlosure.sql.sql-expr-app.
Positional factory function for class sqlosure.sql.sql-expr-app.
(->sql-expr-case branches default)
Positional factory function for class sqlosure.sql.sql-expr-case.
Positional factory function for class sqlosure.sql.sql-expr-case.
(->sql-expr-column name)
Positional factory function for class sqlosure.sql.sql-expr-column.
Positional factory function for class sqlosure.sql.sql-expr-column.
(->sql-expr-const type val)
Positional factory function for class sqlosure.sql.sql-expr-const.
Positional factory function for class sqlosure.sql.sql-expr-const.
(->sql-expr-exists select)
Positional factory function for class sqlosure.sql.sql-expr-exists.
Positional factory function for class sqlosure.sql.sql-expr-exists.
(->sql-expr-subquery query)
Positional factory function for class sqlosure.sql.sql-expr-subquery.
Positional factory function for class sqlosure.sql.sql-expr-subquery.
(->sql-expr-tuple expressions)
Positional factory function for class sqlosure.sql.sql-expr-tuple.
Positional factory function for class sqlosure.sql.sql-expr-tuple.
(->sql-operator name arity)
Positional factory function for class sqlosure.sql.sql-operator.
Positional factory function for class sqlosure.sql.sql-operator.
(->sql-select options
attributes
nullary?
tables
outer-tables
criteria
outer-criteria
group-by
having
order-by
extra)
Positional factory function for class sqlosure.sql.sql-select.
Positional factory function for class sqlosure.sql.sql-select.
(->sql-select-combine op left right)
Positional factory function for class sqlosure.sql.sql-select-combine.
Positional factory function for class sqlosure.sql.sql-select-combine.
(->sql-select-empty)
Positional factory function for class sqlosure.sql.sql-select-empty.
Positional factory function for class sqlosure.sql.sql-select-empty.
(->sql-select-table name)
Positional factory function for class sqlosure.sql.sql-select-table.
Positional factory function for class sqlosure.sql.sql-select-table.
(->sql-table name scheme)
Positional factory function for class sqlosure.sql.sql-table.
Positional factory function for class sqlosure.sql.sql-table.
(base-relation name scheme & {:keys [universe] :or {universe nil}})
Takes a name and a rel-scheme and returns a relation that can be used as a SQL table.
Takes a name and a rel-scheme and returns a relation that can be used as a SQL table.
(make-sql-expr-case branches default)
Construct a sql-expr-case
record.
branches
: access via sqlosure.sql/sql-expr-case-branches
default
: access via sqlosure.sql/sql-expr-case-default
Construct a `sql-expr-case` record. `branches`: access via [[sqlosure.sql/sql-expr-case-branches]] `default`: access via [[sqlosure.sql/sql-expr-case-default]]
(make-sql-expr-column name)
Construct a sql-expr-column
record.
name
: access via sqlosure.sql/sql-expr-column-name
Construct a `sql-expr-column` record. `name`: access via [[sqlosure.sql/sql-expr-column-name]]
(make-sql-expr-const type val)
Construct a sql-expr-const
record.
type
: access via sqlosure.sql/sql-expr-const-type
val
: access via sqlosure.sql/sql-expr-const-val
Construct a `sql-expr-const` record. `type`: access via [[sqlosure.sql/sql-expr-const-type]] `val`: access via [[sqlosure.sql/sql-expr-const-val]]
(make-sql-expr-exists select)
Construct a sql-expr-exists
record.
select
: access via sqlosure.sql/sql-expr-exists-select
Construct a `sql-expr-exists` record. `select`: access via [[sqlosure.sql/sql-expr-exists-select]]
(make-sql-expr-subquery query)
Construct a sql-expr-subquery
record.
query
: access via sqlosure.sql/sql-expr-subquery-query
Construct a `sql-expr-subquery` record. `query`: access via [[sqlosure.sql/sql-expr-subquery-query]]
(make-sql-expr-tuple expressions)
Construct a sql-expr-tuple
record.
expressions
: access via sqlosure.sql/sql-expr-tuple-expressions
Construct a `sql-expr-tuple` record. `expressions`: access via [[sqlosure.sql/sql-expr-tuple-expressions]]
(make-sql-operator name arity)
Construct a sql-operator
record.
name
: access via sqlosure.sql/sql-operator-name
arity
: access via sqlosure.sql/sql-operator-arity
Construct a `sql-operator` record. `name`: access via [[sqlosure.sql/sql-operator-name]] `arity`: access via [[sqlosure.sql/sql-operator-arity]]
(make-sql-select options
attributes
nullary?
tables
outer-tables
criteria
outer-criteria
group-by
having
order-by
extra)
Construct a sql-select
record.
options
: access via sqlosure.sql/sql-select-options
attributes
: access via sqlosure.sql/sql-select-attributes
nullary?
: access via sqlosure.sql/sql-select-nullary?
tables
: access via sqlosure.sql/sql-select-tables
outer-tables
: access via sqlosure.sql/sql-select-outer-tables
criteria
: access via sqlosure.sql/sql-select-criteria
outer-criteria
: access via sqlosure.sql/sql-select-outer-criteria
group-by
(set of SQL column names or nil
.): access via sqlosure.sql/sql-select-group-by
having
(List of SQL expressions or nil.): access via sqlosure.sql/sql-select-having
order-by
: access via sqlosure.sql/sql-select-order-by
extra
: access via sqlosure.sql/sql-select-extra
Construct a `sql-select` record. `options`: access via [[sqlosure.sql/sql-select-options]] `attributes`: access via [[sqlosure.sql/sql-select-attributes]] `nullary?`: access via [[sqlosure.sql/sql-select-nullary?]] `tables`: access via [[sqlosure.sql/sql-select-tables]] `outer-tables`: access via [[sqlosure.sql/sql-select-outer-tables]] `criteria`: access via [[sqlosure.sql/sql-select-criteria]] `outer-criteria`: access via [[sqlosure.sql/sql-select-outer-criteria]] `group-by` (set of SQL column names or `nil`.): access via [[sqlosure.sql/sql-select-group-by]] `having` (List of SQL expressions or nil.): access via [[sqlosure.sql/sql-select-having]] `order-by`: access via [[sqlosure.sql/sql-select-order-by]] `extra`: access via [[sqlosure.sql/sql-select-extra]]
(make-sql-select-combine op left right)
Construct a sql-select-combine
record.
op
: access via sqlosure.sql/sql-select-combine-op
left
: access via sqlosure.sql/sql-select-combine-left
right
: access via sqlosure.sql/sql-select-combine-right
Construct a `sql-select-combine` record. `op`: access via [[sqlosure.sql/sql-select-combine-op]] `left`: access via [[sqlosure.sql/sql-select-combine-left]] `right`: access via [[sqlosure.sql/sql-select-combine-right]]
(make-sql-select-empty)
Construct a sql-select-empty
record.
Construct a `sql-select-empty` record.
(make-sql-select-table name)
Construct a sql-select-table
record.
name
: access via sqlosure.sql/sql-select-table-name
Construct a `sql-select-table` record. `name`: access via [[sqlosure.sql/sql-select-table-name]]
(map->sql-expr-app m__2330__auto__)
Factory function for class sqlosure.sql.sql-expr-app, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-expr-app, taking a map of keywords to field values.
(map->sql-expr-case m__2330__auto__)
Factory function for class sqlosure.sql.sql-expr-case, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-expr-case, taking a map of keywords to field values.
(map->sql-expr-column m__2330__auto__)
Factory function for class sqlosure.sql.sql-expr-column, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-expr-column, taking a map of keywords to field values.
(map->sql-expr-const m__2330__auto__)
Factory function for class sqlosure.sql.sql-expr-const, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-expr-const, taking a map of keywords to field values.
(map->sql-expr-exists m__2330__auto__)
Factory function for class sqlosure.sql.sql-expr-exists, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-expr-exists, taking a map of keywords to field values.
(map->sql-expr-subquery m__2330__auto__)
Factory function for class sqlosure.sql.sql-expr-subquery, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-expr-subquery, taking a map of keywords to field values.
(map->sql-expr-tuple m__2330__auto__)
Factory function for class sqlosure.sql.sql-expr-tuple, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-expr-tuple, taking a map of keywords to field values.
(map->sql-operator m__2330__auto__)
Factory function for class sqlosure.sql.sql-operator, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-operator, taking a map of keywords to field values.
(map->sql-select m__2330__auto__)
Factory function for class sqlosure.sql.sql-select, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-select, taking a map of keywords to field values.
(map->sql-select-combine m__2330__auto__)
Factory function for class sqlosure.sql.sql-select-combine, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-select-combine, taking a map of keywords to field values.
(map->sql-select-empty m__2330__auto__)
Factory function for class sqlosure.sql.sql-select-empty, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-select-empty, taking a map of keywords to field values.
(map->sql-select-table m__2330__auto__)
Factory function for class sqlosure.sql.sql-select-table, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-select-table, taking a map of keywords to field values.
(map->sql-table m__2330__auto__)
Factory function for class sqlosure.sql.sql-table, taking a map of keywords to field values.
Factory function for class sqlosure.sql.sql-table, taking a map of keywords to field values.
(member x xs)
Locates the first element of xs that is equal to x. If such an element exists, the rest of xs starting with that element is returned. Otherwise, the result is false (Scheme's member function).
Locates the first element of xs that is equal to x. If such an element exists, the rest of xs starting with that element is returned. Otherwise, the result is false (Scheme's member function).
(new-sql-select)
Create a new, empty sql-select.
Create a new, empty sql-select.
(really-make-sql-expr-app rator rands)
Construct a sql-expr-app
record.
rator
: access via sqlosure.sql/sql-expr-app-rator
rands
: access via sqlosure.sql/sql-expr-app-rands
Construct a `sql-expr-app` record. `rator`: access via [[sqlosure.sql/sql-expr-app-rator]] `rands`: access via [[sqlosure.sql/sql-expr-app-rands]]
(really-make-sql-table name scheme)
Construct a sql-table
record.
name
: access via sqlosure.sql/sql-table-name
scheme
: access via sqlosure.sql/sql-table-scheme
Construct a `sql-table` record. `name`: access via [[sqlosure.sql/sql-table-name]] `scheme`: access via [[sqlosure.sql/sql-table-scheme]]
(sql-combine-op? k)
Is a key a sql-combine-op?
Is a key a sql-combine-op?
(sql-expr-app-rands rec__2313__auto__)
(sql-expr-app-rands data__2314__auto__ v__2315__auto__)
Lens for the rands
field from a [[sql-expr-app]] record. See sqlosure.sql/really-make-sql-expr-app
.
Lens for the `rands` field from a [[sql-expr-app]] record. See [[sqlosure.sql/really-make-sql-expr-app]].
(sql-expr-app-rator rec__2313__auto__)
(sql-expr-app-rator data__2314__auto__ v__2315__auto__)
Lens for the rator
field from a [[sql-expr-app]] record. See sqlosure.sql/really-make-sql-expr-app
.
Lens for the `rator` field from a [[sql-expr-app]] record. See [[sqlosure.sql/really-make-sql-expr-app]].
(sql-expr-app? thing)
Is object a sql-expr-app
record? See sqlosure.sql/really-make-sql-expr-app
.
Is object a `sql-expr-app` record? See [[sqlosure.sql/really-make-sql-expr-app]].
(sql-expr-case-branches rec__2313__auto__)
(sql-expr-case-branches data__2314__auto__ v__2315__auto__)
Lens for the branches
field from a [[sql-expr-case]] record. See sqlosure.sql/make-sql-expr-case
.
Lens for the `branches` field from a [[sql-expr-case]] record. See [[sqlosure.sql/make-sql-expr-case]].
(sql-expr-case-default rec__2313__auto__)
(sql-expr-case-default data__2314__auto__ v__2315__auto__)
Lens for the default
field from a [[sql-expr-case]] record. See sqlosure.sql/make-sql-expr-case
.
Lens for the `default` field from a [[sql-expr-case]] record. See [[sqlosure.sql/make-sql-expr-case]].
(sql-expr-case? thing)
Is object a sql-expr-case
record? See sqlosure.sql/make-sql-expr-case
.
Is object a `sql-expr-case` record? See [[sqlosure.sql/make-sql-expr-case]].
(sql-expr-column-name rec__2313__auto__)
(sql-expr-column-name data__2314__auto__ v__2315__auto__)
Lens for the name
field from a [[sql-expr-column]] record. See sqlosure.sql/make-sql-expr-column
.
Lens for the `name` field from a [[sql-expr-column]] record. See [[sqlosure.sql/make-sql-expr-column]].
(sql-expr-column? thing)
Is object a sql-expr-column
record? See sqlosure.sql/make-sql-expr-column
.
Is object a `sql-expr-column` record? See [[sqlosure.sql/make-sql-expr-column]].
(sql-expr-const-type rec__2313__auto__)
(sql-expr-const-type data__2314__auto__ v__2315__auto__)
Lens for the type
field from a [[sql-expr-const]] record. See sqlosure.sql/make-sql-expr-const
.
Lens for the `type` field from a [[sql-expr-const]] record. See [[sqlosure.sql/make-sql-expr-const]].
(sql-expr-const-val rec__2313__auto__)
(sql-expr-const-val data__2314__auto__ v__2315__auto__)
Lens for the val
field from a [[sql-expr-const]] record. See sqlosure.sql/make-sql-expr-const
.
Lens for the `val` field from a [[sql-expr-const]] record. See [[sqlosure.sql/make-sql-expr-const]].
(sql-expr-const? thing)
Is object a sql-expr-const
record? See sqlosure.sql/make-sql-expr-const
.
Is object a `sql-expr-const` record? See [[sqlosure.sql/make-sql-expr-const]].
(sql-expr-exists-select rec__2313__auto__)
(sql-expr-exists-select data__2314__auto__ v__2315__auto__)
Lens for the select
field from a [[sql-expr-exists]] record. See sqlosure.sql/make-sql-expr-exists
.
Lens for the `select` field from a [[sql-expr-exists]] record. See [[sqlosure.sql/make-sql-expr-exists]].
(sql-expr-exists? thing)
Is object a sql-expr-exists
record? See sqlosure.sql/make-sql-expr-exists
.
Is object a `sql-expr-exists` record? See [[sqlosure.sql/make-sql-expr-exists]].
(sql-expr-subquery-query rec__2313__auto__)
(sql-expr-subquery-query data__2314__auto__ v__2315__auto__)
Lens for the query
field from a [[sql-expr-subquery]] record. See sqlosure.sql/make-sql-expr-subquery
.
Lens for the `query` field from a [[sql-expr-subquery]] record. See [[sqlosure.sql/make-sql-expr-subquery]].
(sql-expr-subquery? thing)
Is object a sql-expr-subquery
record? See sqlosure.sql/make-sql-expr-subquery
.
Is object a `sql-expr-subquery` record? See [[sqlosure.sql/make-sql-expr-subquery]].
(sql-expr-tuple-expressions rec__2313__auto__)
(sql-expr-tuple-expressions data__2314__auto__ v__2315__auto__)
Lens for the expressions
field from a [[sql-expr-tuple]] record. See sqlosure.sql/make-sql-expr-tuple
.
Lens for the `expressions` field from a [[sql-expr-tuple]] record. See [[sqlosure.sql/make-sql-expr-tuple]].
(sql-expr-tuple? thing)
Is object a sql-expr-tuple
record? See sqlosure.sql/make-sql-expr-tuple
.
Is object a `sql-expr-tuple` record? See [[sqlosure.sql/make-sql-expr-tuple]].
(sql-operator-arity rec__2313__auto__)
(sql-operator-arity data__2314__auto__ v__2315__auto__)
Lens for the arity
field from a [[sql-operator]] record. See sqlosure.sql/make-sql-operator
.
Lens for the `arity` field from a [[sql-operator]] record. See [[sqlosure.sql/make-sql-operator]].
(sql-operator-name rec__2313__auto__)
(sql-operator-name data__2314__auto__ v__2315__auto__)
Lens for the name
field from a [[sql-operator]] record. See sqlosure.sql/make-sql-operator
.
Lens for the `name` field from a [[sql-operator]] record. See [[sqlosure.sql/make-sql-operator]].
(sql-operator? thing)
Is object a sql-operator
record? See sqlosure.sql/make-sql-operator
.
Is object a `sql-operator` record? See [[sqlosure.sql/make-sql-operator]].
(sql-select-attributes rec__2313__auto__)
(sql-select-attributes data__2314__auto__ v__2315__auto__)
Lens for the attributes
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `attributes` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-combine-left rec__2313__auto__)
(sql-select-combine-left data__2314__auto__ v__2315__auto__)
Lens for the left
field from a [[sql-select-combine]] record. See sqlosure.sql/make-sql-select-combine
.
Lens for the `left` field from a [[sql-select-combine]] record. See [[sqlosure.sql/make-sql-select-combine]].
(sql-select-combine-op rec__2313__auto__)
(sql-select-combine-op data__2314__auto__ v__2315__auto__)
Lens for the op
field from a [[sql-select-combine]] record. See sqlosure.sql/make-sql-select-combine
.
Lens for the `op` field from a [[sql-select-combine]] record. See [[sqlosure.sql/make-sql-select-combine]].
(sql-select-combine-right rec__2313__auto__)
(sql-select-combine-right data__2314__auto__ v__2315__auto__)
Lens for the right
field from a [[sql-select-combine]] record. See sqlosure.sql/make-sql-select-combine
.
Lens for the `right` field from a [[sql-select-combine]] record. See [[sqlosure.sql/make-sql-select-combine]].
(sql-select-combine? thing)
Is object a sql-select-combine
record? See sqlosure.sql/make-sql-select-combine
.
Is object a `sql-select-combine` record? See [[sqlosure.sql/make-sql-select-combine]].
(sql-select-criteria rec__2313__auto__)
(sql-select-criteria data__2314__auto__ v__2315__auto__)
Lens for the criteria
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `criteria` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-empty? thing)
Is object a sql-select-empty
record? See sqlosure.sql/make-sql-select-empty
.
Is object a `sql-select-empty` record? See [[sqlosure.sql/make-sql-select-empty]].
(sql-select-extra rec__2313__auto__)
(sql-select-extra data__2314__auto__ v__2315__auto__)
Lens for the extra
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `extra` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-group-by rec__2313__auto__)
(sql-select-group-by data__2314__auto__ v__2315__auto__)
Lens for the group-by
field (set of SQL column names or nil
.) from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `group-by` field (set of SQL column names or `nil`.) from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-having rec__2313__auto__)
(sql-select-having data__2314__auto__ v__2315__auto__)
Lens for the having
field (List of SQL expressions or nil.) from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `having` field (List of SQL expressions or nil.) from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-nullary? rec__2313__auto__)
(sql-select-nullary? data__2314__auto__ v__2315__auto__)
Lens for the nullary?
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `nullary?` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-options rec__2313__auto__)
(sql-select-options data__2314__auto__ v__2315__auto__)
Lens for the options
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `options` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-order-by rec__2313__auto__)
(sql-select-order-by data__2314__auto__ v__2315__auto__)
Lens for the order-by
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `order-by` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-outer-criteria rec__2313__auto__)
(sql-select-outer-criteria data__2314__auto__ v__2315__auto__)
Lens for the outer-criteria
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `outer-criteria` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-outer-tables rec__2313__auto__)
(sql-select-outer-tables data__2314__auto__ v__2315__auto__)
Lens for the outer-tables
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `outer-tables` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select-table-name rec__2313__auto__)
(sql-select-table-name data__2314__auto__ v__2315__auto__)
Lens for the name
field from a [[sql-select-table]] record. See sqlosure.sql/make-sql-select-table
.
Lens for the `name` field from a [[sql-select-table]] record. See [[sqlosure.sql/make-sql-select-table]].
(sql-select-table? thing)
Is object a sql-select-table
record? See sqlosure.sql/make-sql-select-table
.
Is object a `sql-select-table` record? See [[sqlosure.sql/make-sql-select-table]].
(sql-select-tables rec__2313__auto__)
(sql-select-tables data__2314__auto__ v__2315__auto__)
Lens for the tables
field from a [[sql-select]] record. See sqlosure.sql/make-sql-select
.
Lens for the `tables` field from a [[sql-select]] record. See [[sqlosure.sql/make-sql-select]].
(sql-select? thing)
Is object a sql-select
record? See sqlosure.sql/make-sql-select
.
Is object a `sql-select` record? See [[sqlosure.sql/make-sql-select]].
(sql-table-name rec__2313__auto__)
(sql-table-name data__2314__auto__ v__2315__auto__)
Lens for the name
field from a [[sql-table]] record. See sqlosure.sql/really-make-sql-table
.
Lens for the `name` field from a [[sql-table]] record. See [[sqlosure.sql/really-make-sql-table]].
(sql-table-scheme rec__2313__auto__)
(sql-table-scheme data__2314__auto__ v__2315__auto__)
Lens for the scheme
field from a [[sql-table]] record. See sqlosure.sql/really-make-sql-table
.
Lens for the `scheme` field from a [[sql-table]] record. See [[sqlosure.sql/really-make-sql-table]].
(sql-table? thing)
Is object a sql-table
record? See sqlosure.sql/really-make-sql-table
.
Is object a `sql-table` record? See [[sqlosure.sql/really-make-sql-table]].
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close