Home modules.gotpike.org
Username: Password: [Create Account]
[Forgot Password?]

Modules

ADT
Database
GTK2
GUI
IP
PiJAX
Public
Sql
Stdio
Subversion
System
Tools
Xosd
lua
v4l2
wx

Recent Changes

Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0

Popular Downloads

Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48


Pike Module Reference:

module version 1.1, prepared

  MODULE Database
Modules
MongoDB

  MODULE Database.MongoDB
Classes
Database
LowCollection


Constant UPDATE_UPSERT

constant Database.MongoDB.UPDATE_UPSERT

Description

Index: Update/Insert operation.


Constant UPDATE_MULTI

constant Database.MongoDB.UPDATE_MULTI

Description

Index: Multi-object Update operation.


Constant UPDATE_MULTI

constant Database.MongoDB.UPDATE_MULTI

Description

Index: Multi-object Update operation.


Constant INDEX_UNIQUE

constant Database.MongoDB.INDEX_UNIQUE

Description

Index: Multi-object Update operation.


Constant INDEX_DROP_DUPS

constant Database.MongoDB.INDEX_DROP_DUPS

Description

Index: Multi-object Update operation.


Constant INDEX_BACKGROUND

constant Database.MongoDB.INDEX_BACKGROUND

Description

Index: Multi-object Update operation.


Constant INDEX_SPARSE

constant Database.MongoDB.INDEX_SPARSE

Description

Index: Multi-object Update operation.

  CLASS Database.MongoDB.LowCollection
  CLASS Database.MongoDB.Database
Methods
add_seed()
authenticate()
connect()
connect_replica_set()
create()
get_collection()
get_replica_set_name()

Method create

void Database.MongoDB.Database()->create(string|void replica_set)


Method add_seed

void Database.MongoDB.Database()->add_seed(string ip, int|void port)

Description

add a seed to the replica set connection configuration.


Method connect

void Database.MongoDB.Database()->connect(string ip, int|void port)


Method connect_replica_set

void Database.MongoDB.Database()->connect_replica_set()

Description

connect to a replica set, having specified the seeds using add_seed().


Method get_collection

object Database.MongoDB.Database()->get_collection(string name)


Method authenticate

int Database.MongoDB.Database()->authenticate(string db, string username, string password)


Method get_replica_set_name

string Database.MongoDB.Database()->get_replica_set_name()

gotpike.org | Copyright © 2004 - 2019 | Pike is a trademark of Department of Computer and Information Science, Linköping University