rsqlite3 Rust 重写的 sqlite3开源项目

我要开发同款
匿名用户2021年11月08日
23阅读
开发技术Rust
所属分类数据库服务器、数据库相关
授权协议未知

作品详情

rsqlite3是使用Rust重写的sqlite3数据库。

rsqlite3使用c2rust转译器重写了sqlite3代码 ,作者也在此基础上进行了部分清理。

使用示例

$cargo+nightlybuild--release#...bunchofstuffIchoosenottounderstand/readwarning:`rsqlite3`(bin"rsqlite3")generated37warnings(24duplicates)Finishedrelease[optimized]target(s)in39.84s$./target/release/rsqlite3--Loadingresourcesfrom/home/epilys/.sqlitercSQLiteversion3.37.02021-10-1710:31:09Enter".help"forusagehints.Connectedtoatransientin-memorydatabase.Use".openFILENAME"toreopenonapersistentdatabase.sqlite>.openrrrrrruuuuuust.dbsqlite>CREATETABLEopinions(x);sqlite>insertintoopinions(x)values(hex(randomblob(16)));sqlite>insertintoopinions(x)values(hex(randomblob(16)));sqlite>insertintoopinions(x)values(hex(randomblob(16)));sqlite>insertintoopinions(x)values(hex(randomblob(16)));sqlite>select*fromopinions;x--------------------------------343D4BE24D07A96F8550B0942F664A6CD6289536E4A8057EB44754358EACD31AB4CA8E714CB57B11E7336263D214F30FA6491CA289ABF90EB2D76F5E1F919272sqlite>PRAGMAjournal_mode=wal;journal_mode------------walsqlite>PRAGMAintegrity_check;integrity_check---------------oksqlite>VACUUM;sqlite>^D
查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论