(define-make-instance table)
Define the make-instance
multi method for table
.
Define the `make-instance` multi method for `table`.
Delete records
of class
in db
.
Delete `records` of `class` in `db`.
(exists? db class record)
Returns true if the record
of class
can be found in db
,
otherwise false. Uses the primary key and unique column.
Returns true if the `record` of `class` can be found in `db`, otherwise false. Uses the primary key and unique column.
(find-all db class & [opts])
Select all rows of class
.
Select all rows of `class`.
Insert records
of class
into db
.
Insert `records` of `class` into `db`.
Save records
of class
to db
.
Save `records` of `class` to `db`.
Return the SELECT statement for class
. This statement will be
used by all the finder functions that are generated for class
.
Return the SELECT statement for `class`. This statement will be used by all the finder functions that are generated for `class`.
Return the columns for class
used in SELECT and RETURNING clauses.
Return the columns for `class` used in SELECT and RETURNING clauses.
(select-values class records)
Return a seq of records
that only have the table column keys.
Return a seq of `records` that only have the table column keys.
Update records
of class
in db
.
Update `records` of `class` in `db`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close