TMongoWire MongoDB 的 Delphi 驱动开源项目

我要开发同款
匿名用户2012年05月28日
193阅读

技术信息

开源地址
https://github.com/stijnsanders/TMongoWire
授权协议
MIT

作品详情

TMogoWire是一个Delphi的驱动,用来访问MogoDB数据库,它将映射Delphi的数据类型OleVariat。

示例代码:

  TBSONDocumet = class(TIterfacedObject, IBSONDocumet, IPersistStream)    Holds the data of a 'documet', the basic uit of data mogoDB works with.    Implemets a IBSONDocumet iterface which allows it to be refereced by    a OleVariat variable, which eables embeddig documets.    Implemets the IPersistStream iterface to eable loadig from ad savig    to BSON, the iteral biary storage specificatio used by mogoDB.  fuctio BSON: IBSONDocumet; overload;  fuctio BSON(x: array of OleVariat): IBSONDocumet; overload;    Creates a BSON documet object ready for use.    Optioally pass a sequece of key-value pairs,      e.g.: BSON(['x',5,'y',7]);    Use '[' ad ']' to created embedded documets,      e.g.: BSON(['x','[','$gt',7,']']);    Use VarArrayOf or 1-dimesioal variat arrays to add arrays,      e.g.: BSON(['x',VarArrayOf([1,2,3])]);

功能介绍

TMongoWire 是一个 Delphi 的驱动,用来访问 MongoDB 数据库,它将映射 Delphi 的数据类型 OleVariant。 示例代码:
  TBSONDocument ...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论