Handbook
Glossary
create-table ( class -- )
High-level tuple/database integration
ยป
High-level tuple/database words
Prev:
define-persistent ( class table columns -- )
Next:
ensure-table ( class -- )
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 database will likely throw an error.
See also
ensure-table
,
ensure-tables
,
recreate-table
Definition
USING:
db
db.tuples.private
;
IN:
db.tuples
:
create-table
( class -- )
ensure-defined-persistent
create-sql-statement
[
execute-statement
]
with-disposals
;