Womb : Womb Namespace
DB

Connection to PostgreSQL database

public sealed class DB


Remarks
To be added.
Members

See Also: Inherited members from object.

Constructors
DB ()
To be added.
Properties
DictCache [read-only]
Hashtable . Dictionary cache
Status [read-only]
DBStatus . Connection status
Methods
AddBlob (byte[], out int)
To be added.
Connect (string, int, string, string, string) : bool
To be added.
DeleteBlob (int)
To be added.
Disconnect ()
To be added.
static EscapeSQL (object) : string
To be added.
GetBlob (int) : byte[]
To be added.
GetSelector (Type) : Selector
Gets a selector for fetching rows
Listen (string)
To be added.
Notify (string)
To be added.
ReadDictionary (string)
To be added.
Send (string) : string
To be added.
SendFoo ()
To be added.
SendNonQuery (string)
To be added.
SendQuery (string) : System.Data.IDataReader
To be added.
Unlisten (string)
To be added.
UpdateBlob (int, byte[])
To be added.
Events
Notification
To be added.
Member Details
DB Constructor
public DB ()

To be added.

Remarks
To be added.

Notification
public event Npgsql.NotificationEventHandler Notification

To be added.

Remarks
To be added.

Connect
public bool Connect (string host, int port, string database, string user, string password)

To be added.

Parameters
host
To be added.
port
To be added.
database
To be added.
user
To be added.
password
To be added.
Returns
To be added.
Remarks
To be added.

Disconnect
public void Disconnect ()

To be added.

Remarks
To be added.

GetSelector
public Selector GetSelector (Type atomtype)

Gets a selector for fetching rows

Parameters
atomtype
Type of row to be selected. It must be a subclass of Womb.Atom
Returns
A new Womb.Selector ready to be used
Remarks
To be added.

Listen
public void Listen (string event_name)

To be added.

Parameters
event_name
To be added.
Remarks
To be added.

Notify
public void Notify (string event_name)

To be added.

Parameters
event_name
To be added.
Remarks
To be added.

Unlisten
public void Unlisten (string event_name)

To be added.

Parameters
event_name
To be added.
Remarks
To be added.

Send
public string Send (string command)

To be added.

Parameters
command
To be added.
Returns
To be added.
Remarks
To be added.

SendNonQuery
public void SendNonQuery (string command)

To be added.

Parameters
command
To be added.
Remarks
To be added.

SendFoo
public void SendFoo ()

To be added.

Remarks
To be added.

AddBlob
public void AddBlob (byte[] data, [System.Runtime.InteropServices.Out] out int oid)

To be added.

Parameters
data
To be added.
oid
To be added.
Remarks
To be added.

UpdateBlob
public void UpdateBlob (int oid, byte[] data)

To be added.

Parameters
oid
To be added.
data
To be added.
Remarks
To be added.

GetBlob
public byte[] GetBlob (int oid)

To be added.

Parameters
oid
To be added.
Returns
To be added.
Remarks
To be added.

DeleteBlob
public void DeleteBlob (int oid)

To be added.

Parameters
oid
To be added.
Remarks
To be added.

SendQuery
public System.Data.IDataReader SendQuery (string command)

To be added.

Parameters
command
To be added.
Returns
To be added.
Remarks
To be added.

ReadDictionary
public void ReadDictionary (string tab)

To be added.

Parameters
tab
To be added.
Remarks
To be added.

EscapeSQL
public static string EscapeSQL (object o)

To be added.

Parameters
o
To be added.
Returns
To be added.
Remarks
To be added.

Status
public DBStatus Status { get; }

Connection status

Value
To be added.
Remarks
To be added.

DictCache
public Hashtable DictCache { get; }

Dictionary cache

Value
A Hashtable containing the dictionaries.
Remarks
Do NOT modify the table