Handbook
Glossary
bind# ( spec obj -- )
Vocabulary
db
.
types
Inputs
spec
an SQL spec
obj
an
object
Outputs
None
Word description
A generic word that lets a database construct a literal binding.
Definition
USING:
db
;
IN:
db.types
HOOK:
bind#
db-connection
( spec obj -- )
Methods
USING:
accessors
db.postgresql
db.postgresql.private
db.types
kernel
nmake
;
M:
postgresql-db-connection
bind#
[
bind-name%
f
swap
type>>
]
dip
<literal-bind>
1,
;
USING:
accessors
db.sqlite.private
db.tuples.private
db.types
kernel
nmake
sequences
;
M:
sqlite-db-connection
bind#
[
[
column-name>>
":"
next-sql-counter
surround
dup
0%
]
[
type>>
]
bi
]
dip
<literal-bind>
1,
;