当前位置: 首页 > 软件库 > 数据库相关 > >

mongo-perl-driver

Perl driver for the MongoDB
授权协议 Apache-2.0 License
开发语言 Perl
所属分类 数据库相关
软件类型 开源软件
地区 不详
投 递 者 方浩旷
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

END OF LIFE NOTICE

Version v2.2.0 was the final feature release of the MongoDB Perl driver andversion v2.2.2 is the final patch release.

As of August 13, 2020, the MongoDB Perl driver and related libraries havereached end of life and are no longer supported by MongoDB. See the August2019 deprecationnoticefor rationale.

If members of the community wish to continue development, they are welcome tofork the code under the terms of the Apache 2 license and release it under anew namespace. Specifications and test files for MongoDB drivers andlibraries are published in an open repository:mongodb/specifications.

Introduction

mongo-perl-driver is the official client-side driver for talking toMongoDB with Perl. It is free software released under the Apache 2.0license and available on CPAN under the distribution name MongoDB.

This file describes requirements and procedures for developing and testing theMongoDB Perl driver from its code repository. For instructions installingfrom CPAN or tarball, see the INSTALL.md file instead.

While this distribution is shipped using Dist::Zilla, you do not need toinstall it or use it for development and testing.

Working with the source

Compiler tool requirements

This module requires make and a compiler.

For example, Debian and Ubuntu users should issue the following command:

$ sudo apt-get install build-essential

Users of Red Hat based distributions (RHEL, CentOS, Amazon Linux, OracleLinux, Fedora, etc.) should issue the following command:

$ sudo yum install make gcc

On Windows, StrawberryPerl ships with aGCC compiler.

On Mac, install XCode or just the XCode command linetools.

Installing Perl dependencies as a non-privileged user

If you do not have write permissions to your Perl's site library directory(perl -V:sitelib), then you will need to use your CPAN client or runmake install as root or with sudo.

Alternatively, you can configure a local library. Seelocal::libon CPAN for more details. If you configure a local library, don't forgetto modify your .bashrc or equivalent files.

Configuration and dependencies

You will need to install Config::AutoConf and Path::Tiny to be able to runthe Makefile.PL.

$ cpan Config::AutoConf Path::Tiny

To configure:

$ perl Makefile.PL

The output will highlight any missing dependencies. Install those with thecpan client.

$ cpan [list of dependencies]

You may also use cpan to install the current stable MongoDB driver withcpan MongoDB, which should pick up most of the dependencies you willneed automatically.

Building and testing

Most tests will skip unless a MongoDB database is available either on thedefault localhost and port or on an alternate host:port specified by theMONGOD environment variable:

$ export MONGOD=localhosts:31017

You can download a free, community edition of MongoDB fromMongoDB Downloads.

To build and test (after configuration):

$ make
$ make test
  • An authentication credential is represented as an instance of the MongoCredential class, which includes static factory methods for each of the supported authentication mechanisms. A list of these inst

  • OS环境:   Centos 7.1 release   X86_64 编译环境:   G++ 4.8.3   已经成功搭建好了Mongodb,也初步在命令行中的查询与写入数据的基本方法,现在通过C++来连接Mongodb。 1.准备工作   (1).在官网中下载mongodb的C++ driver      官方文档说明:       https://github.com/mongodb/mon

  • 本操作是针对与centos7.2 进行的安装服务,和环境配置,用mongodb代替mysql进行的lnmp安装 --------------------------------------------------------------------------------------- php ----------------------------------------------------

 相关资料
  • 你会认为这是一件简单的事情。我有一个在我的集合中的对象ID列表。我想根据对象ID获得一条记录。谷歌过,但没有任何帮助。 所以我有对象id:5106c7703abc120a04070b34 此打印: 我试过上述发现的不同版本。它们都无法编译: 查找({_id= 它们都不起作用。如何使用对象id查找(findone)单个记录??

  • Perl是一种动态解释型的脚本语言。 最初的设计者为拉里·沃尔(Larry Wall),它于1987年12月18日发表。Perl借取了C、sed、awk、shell scripting 以及很多其他编程語言的特性。其中最重要的特性是他内部集成了正则表达式的功能,以及巨大的第三方代码库 CPAN。 2000年开始,拉里·沃尔着手开发Perl 6来作为Perl的后继,Perl 6语言的语法有很多转变,

  • MongoDB README Welcome to MongoDB! Components mongod - The database server. mongos - Sharding router. mongo - The database shell (uses interactive javascript). Utilities install_compass - Installs Mon

  • 主要内容:安装,DBI 接口 API,连接数据库,创建表,INSERT 操作,SELECT 操作,UPDATE 操作,DELETE 操作安装 SQLite3 可使用 Perl DBI 模块与 Perl 进行集成。Perl DBI 模块是 Perl 编程语言的数据库访问模块。它定义了一组提供标准数据库接口的方法、变量及规则。 下面显示了在 Linux/UNIX 机器上安装 DBI 模块的简单步骤: 如果您需要为 DBI 安装 SQLite 驱动程序,那么可按照以下步骤进行安装: DBI 接口 AP

  • 本文向大家介绍Perl parse_line(),包括了Perl parse_line()的使用技巧和注意事项,需要的朋友参考一下 示例 使用parse_line()Text :: ParseWords: 输出:            

  • 什么是包裹? 包是一组代码,它们位于自己的命名空间中 命名空间是唯一变量名称的命名集合(也称为符号表)。 命名空间可防止包之间发生变量名冲突 软件包可以构建模块,这些模块在使用时不会破坏模块自身命名空间之外的变量和函数 The Package 语句 package语句将当前命名上下文切换到指定的命名空间(符号表) 如果命名包不存在,则首先创建新的命名空间。 $i = 1; print "$i\n"