项目介绍
db3 network是一款开源去中心化firebase实现
v0.2.6版本主要更新
提升命令行的可用性,支持db3 client命令行模式和 db3 console 交互式模式来体验db3 network
创建数据库
db3>-$ new-db
database address | transaction id
--------------------------------------------+----------------------------------------------
0xa9f5c8170aad7a0f924d89c6edacae6db24ef57d | 0ALy/hH7CQe9lv294K6dOxGP14xWHsbRs+/pXBZa8oU=
显示数据库信息
db3>-$ show-db --addr 0x7e16cb6524e2fc21ae9bf2d7ee18b05767b9dc33
database address | sender address | releated transactions | collections
--------------------------------------------+--------------------------------------------+----------------------------------------------+-------------
0x7e16cb6524e2fc21ae9bf2d7ee18b05767b9dc33 | 0x96bdb8e20fbd831fcb37dde9f81930a82ab5436b | EMYw64xlI2q4v1MShoKw3T60asNbWJ9//ca75M3JO3Q= |
创建collection
db3>$ new-collection --addr 0xcfb524677673af15edebbec018b16d42d87b1251 --name books --index '{"name":"idx1","fields":[{"field_path":"test1","value_mode":{"Order":1}}]}'
send add collection done with tx
3V7r7VRg+9zUXeGNmqRR0YdVXWtBSl4sk+Z50h9BrOc=
查看数据库collection列表
db3>-$ show-collection --addr 0xcfb524677673af15edebbec018b16d42d87b1251
name | index
-------+----------------------------------------------------------------------------
books | {"name":"idx1","fields":[{"field_path":"test1","value_mode":{"Order":1}}]}
db3 network正处于开发过程中,如果你对去中心化数据库感兴趣或者想了解更多,欢迎到加入到 github社区 ,给db3 network点赞支持