Handbook
Glossary
ensure-table ( class -- )
High-level tuple/database integration
ยป
High-level tuple/database words
Prev:
create-table ( class -- )
Next:
ensure-tables ( classes -- )
Vocabulary
db
.
tuples
Inputs
class
a
class
Outputs
None
Word description
Creates an SQL table from a mapping defined by
define-persistent
. If the table already exists, the error is silently ignored.
See also
create-table
,
ensure-tables
,
recreate-table
Definition
USING:
db.errors
kernel
;
IN:
db.tuples
:
ensure-table
( class -- )
[
create-table
]
curry
[
ignore-table-exists
]
curry
ignore-function-exists
;