Click or drag to resize
Database Methods

The Database type exposes the following members.

Methods
  NameDescription
Public methodAdapter
Get the database provider factory
Public methodAdapter(String)
Set the database provider factory
Public methodAny
Determine if there is any data in the table that matches the query condition
Public methodCommit
Commit the current transaction
Public methodConn
Get the database connection
Public methodDebug
Get the current debug state for this Database instance
Public methodDebug(Boolean)
Set the debug state. true will enable recording of SQL statements
Public methodDebugInfo
Get debug information. Each query will add an extra item to the list, with the text of the query and information about any bound values. Note that calling this method will empty the list, so any new queries will be added to an empty list.
Public methodDelete
Perform a delete query on a table. This is a short cut method that creates and update query and then uses the
query('delete')
, table, where and exec methods of the query.
Public methodDispose
Dispose of this database instance
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert
Insert data into a table. This is a short cut method that creates an update query and then uses the
query('insert')
, table, set and exec methods of the query.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPush
Update or Insert data. When doing an insert, the where condition is added as a set field
Public methodQuery(String)
Create a query object to build a database query.
Public methodQuery(String, String)
Create a query object to build a database query.
Public methodRollback
Rollback the database state to the start of the transaction.
Public methodSelect(String, IEnumerableString, ActionQuery, IEnumerableString)
Select data from a table. This is a short cut method that creates an update query and then uses the
query('select')
, table, get, where and exec methods of the query.
Public methodSelect(String, IEnumerableString, DictionaryString, Object, IEnumerableString)
Select data from a table. This is a short cut method that creates an update query and then uses the
query('select')
, table, get, where and exec methods of the query.
Public methodSelectDistinct(String, IEnumerableString, ActionQuery, IEnumerableString)
Select distinct data from a table. This is a short cut method that creates an update query and then uses the
query('select')
, distinct ,table, get, where and exec methods of the query.
Public methodSelectDistinct(String, IEnumerableString, ActionQuery, String)
Select distinct data from a table. This is a short cut method that creates an update query and then uses the
query('select')
, distinct ,table, get, where and exec methods of the query.
Public methodSelectDistinct(String, IEnumerableString, DictionaryString, Object, IEnumerableString)
Select distinct data from a table. This is a short cut method that creates an update query and then uses the
query('select')
, distinct ,table, get, where and exec methods of the query.
Public methodSql
Execute an raw SQL query - i.e. give the method your own SQL, rather than having the Database classes building it for you.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransaction
Start a new database transaction.
Public methodUpdate
Update data. This is a short cut method that creates an update query and then uses the
query('update')
, table, set, where and exec methods of the query.
Top
See Also