storj/multinode/multinodedb/dbx/multinodedb.dbx

33 lines
482 B
Plaintext
Raw Permalink Normal View History

// 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
)