Class net.nextdb.Connection
Object
|
+--net.nextdb.Connection
- class
net.nextdb.Connection
Connection is the class that establishes the connection to the database that Query/Insert/Update/Delete will use to execute.
This is how you construct a Connection:
var conn = new net.nextdb.Connection("yourAccountName","yourDatabaseName");
Defined in api.docs.js
|
Method Summary |
void
|
createRelationship(<String> relationshipName, <String> rowId1, <String> rowId2, <Function> callback)
The callBack signature is callack(error) error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
|
void
|
describeQuery(<String> queryName,<Function> callback)
|
void
|
describeTable(<String> tableName,<Function> callback)
|
void
|
executeDelete(<net.nextdb.Delete> del,<Function> callback)
The callBack signature is callack(error) error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded.
|
void
|
executeInsert(<net.nextdb.Insert> insert,<Function> callback)
The callBack signature is callack(rowId,error) the rowId is the encrypted id for the new row inserted, error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
|
void
|
executeQuery(<net.nextdb.Query> query,<Function> callback)
The callBack signature is callack(object,error) the object is the dynamically generated data structure from the query, error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
|
void
|
executeUpdate(<net.nextdb.Update> update,<Function> callback)
The callBack signature is callack(error) the error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
|
void
|
removeRelationship(<String> relationshipName, <String> rowId1, <String> rowId2, <Function> callback)
The callBack signature is callack(error) error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded.
|
void
|
uploadProgress(<string> uploadID,<Function> callback)
|
net.nextdb.Connection
net.nextdb.Connection(<String> account,<String> databaseName)
createRelationship
void createRelationship(<String> relationshipName, <String> rowId1, <String> rowId2, <Function> callback)
The callBack signature is callack(error) error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
Parameters:
relationshipName - -required name of the predefined relationship between the tables.
rowId1 - -required rowId for the row in the first table of the relationship.
rowId2 - -required rowId for the row in the second table of the relationship.
describeQuery
void describeQuery(<String> queryName,<Function> callback)
describeTable
void describeTable(<String> tableName,<Function> callback)
executeDelete
void executeDelete(<net.nextdb.Delete> del,<Function> callback)
The callBack signature is callack(error) error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded.
executeInsert
void executeInsert(<net.nextdb.Insert> insert,<Function> callback)
The callBack signature is callack(rowId,error) the rowId is the encrypted id for the new row inserted, error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
executeQuery
void executeQuery(<net.nextdb.Query> query,<Function> callback)
The callBack signature is callack(object,error) the object is the dynamically generated data structure from the query, error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
executeUpdate
void executeUpdate(<net.nextdb.Update> update,<Function> callback)
The callBack signature is callack(error) the error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded
removeRelationship
void removeRelationship(<String> relationshipName, <String> rowId1, <String> rowId2, <Function> callback)
The callBack signature is callack(error) error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded.
Parameters:
relationshipName - -required name of the predefined relationship between the tables.
rowId1 - -required rowId for the row in the first table of the relationship.
rowId2 - -required rowId for the row in the second table of the relationship.
uploadProgress
void uploadProgress(<string> uploadID,<Function> callback)
Documentation generated by
JSDoc on Mon Mar 29 20:15:50 2010