4c704ea9a4
Change-Id: Ibb049c0ad9b09dd89852234b601d7577735c4d34
33 lines
482 B
Plaintext
33 lines
482 B
Plaintext
// dbx.v1 golang multinodedb.dbx .
|
|
|
|
model node (
|
|
key id
|
|
|
|
field id blob
|
|
field name text ( updatable )
|
|
field public_address text
|
|
field api_secret blob
|
|
)
|
|
|
|
create node ( )
|
|
delete node ( where node.id = ? )
|
|
update node ( where node.id = ? )
|
|
|
|
read one (
|
|
select node
|
|
where node.id = ?
|
|
)
|
|
read count (
|
|
select node
|
|
)
|
|
read all(
|
|
select node
|
|
)
|
|
read limitoffset (
|
|
select node
|
|
)
|
|
update node (
|
|
where node.id = ?
|
|
noreturn
|
|
)
|