TMongoWire MongoDB 的 Delphi 驱动开源项目

我要开发同款
匿名用户2012年05月28日
44阅读
开发技术Delphi/Pascal
所属分类数据库相关、数据库驱动程序
授权协议MIT

作品详情

TMongoWire是一个Delphi的驱动,用来访问MongoDB数据库,它将映射Delphi的数据类型OleVariant。

示例代码:

  TBSONDocument = class(TInterfacedObject, IBSONDocument, IPersistStream)    Holds the data of a 'document', the basic unit of data mongoDB works with.    Implements an IBSONDocument interface which allows it to be referenced by    an OleVariant variable, which enables embedding documents.    Implements the IPersistStream interface to enable loading from and saving    to BSON, the internal binary storage specification used by mongoDB.  function BSON: IBSONDocument; overload;  function BSON(x: array of OleVariant): IBSONDocument; overload;    Creates a BSON document object ready for use.    Optionally pass a sequence of key-value pairs,      e.g.: BSON(['x',5,'y',7]);    Use '[' and ']' to created embedded documents,      e.g.: BSON(['x','[','$gt',7,']']);    Use VarArrayOf or 1-dimensional variant arrays to add arrays,      e.g.: BSON(['x',VarArrayOf([1,2,3])]);
查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论