Manages connections and UltraLite databases.
public class DatabaseManager
All members of DatabaseManager class, including all inherited members.
|Creates and returns an instance of the ConnectionParms object.|
|Creates and returns an instance of the CreationParms object.|
|Creates a new database.|
|Erases an existing database that is not currently running.|
|Opens a new connection to an existing database.|
|Returns the persistent Connection object previously created or opened.|
|Performs low level and index validation on a database.|
|Readonly property; Holds the AuthStatusCode object.|
|Readonly property; Returns the application directory for AvantGo.|
|Readonly property; Returns the runtime type: standalone or engine/client.|
|Readonly property; Provides error checking capabilities by returning the SQL code value for the success or failure of a database operation.|
|Readonly property; Holds the SQLError object.|
|Readonly property; Holds the SQLType object.|
|Engine version of UltraLite runtime.|
|Standalone version of UltraLite runtime.|
|Validation input type: do a faster, though less thorough, validation.|
|Validation input type: validate tables, indexes, and database.|
You must open a connection before carrying out any other operation, and you must close the connection after you have finished all operations on the connection and before your application terminates. You must close all tables opened on a connection before closing the connection.
The DatabaseManager object is the only main PODS object. It is created in the following way:
var dbMgr = CreateObject( "iAnywhere.UltraLite.DatabaseManager.CustDB" );
"iAnywhere.UltraLite.DatabaseManager" is the standard URL prefix to create a DatabaseManager object. The last portion in the URL is the specific application name. Each ULPod application should has its own unique application name.
Discuss this page in DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|