storj/multinode/multinodedb/dbx/multinodedb.dbx
crawter 4c704ea9a4 mnd/db/nodes: paginated list added
Change-Id: Ibb049c0ad9b09dd89852234b601d7577735c4d34
2021-06-01 13:19:48 +03:00

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
)