Handbook
Glossary
create-sql-statement ( class -- object )
High-level tuple/database integration
ยป
Tuple database protocol
Next:
drop-sql-statement ( class -- object )
Vocabulary
db
.
tuples
Inputs
class
a
class
Outputs
object
an
object
Word description
Generates the SQL code for creating a table for a given class.
Definition
USING:
db
;
IN:
db.tuples
HOOK:
create-sql-statement
db-connection
( class -- object )
Methods
USING:
db.postgresql
db.postgresql.private
db.tuples
db.types
kernel
make
;
M:
postgresql-db-connection
create-sql-statement
[
[
create-table-sql
,
]
keep
dup
db-assigned?
[
create-function-sql
,
]
[
drop
]
if
]
{
}
make
;
USING:
db.queries
db.sqlite
db.sqlite.private
db.tuples
kernel
;
M:
sqlite-db-connection
create-sql-statement
[
[
sqlite-create-table
]
[
drop
create-db-triggers
]
2bi
]
query-make
;