recreate-table ( class -- ) (original) (raw)
recreate-table ( class -- )
High-level tuple/database integration » High-level tuple/database words
Prev: | ensure-tables ( classes -- ) |
---|---|
Next: | drop-table ( class -- ) |
Inputs
class | a class |
---|
Outputs
None
Word description
Drops an existing table and re-creates it from a mapping defined by define-persistent. If the table does not exist the error is silently ignored.
Warning
THIS WORD WILL DELETE YOUR DATA.
Use ensure-table unless you want to delete the data in this table.
See also
create-table, ensure-table, ensure-tables
Definition
: recreate-table ( class -- )
[
[ drop-table ] curry [ ignore-table-missing ] curry
ignore-function-missing
] [ create-table ] bi ;