Home
About
Testimonials
Demos
Download
Documentation
Blogs
Forum
Class Finder
Tutorials
Class Docs
API Manual
Wiki
Namespace:
System.Data
Inheritance:
TComponent
»
TDbConnection
Properties
|
Events
|
Methods
|
Derived classes
|
All classes
Properties
Name
Type
Description
Active
boolean
whether the DB connection is established.
AutoCommit
boolean
whether creating or updating a DB record will be automatically committed.
Charset
string
the charset used for database connection.
R
ClientVersion
string
the version information of the DB driver.
ColumnCase
TDbColumnCaseMode
the case of the column names.
R
ConnectionStatus
string
the status of the connection Some DBMS (such as sqlite) may not support this feature.
ConnectionString
string
The Data Source Name, or DSN, contains the information required to connect to the database.
R
CurrentTransaction
TDbTransaction
the currently active transaction.
R
DriverName
string
name of the DB driver.
R
LastInsertID
string
Returns the ID of the last inserted row or sequence value.
NullConversion
TDbNullConversionMode
how the null and empty strings are converted.
Password
string
the password for establishing DB connection.
R
PdoInstance
PDO
the PDO instance, null if the connection is not established yet.
Persistent
boolean
whether the connection is persistent or not Some DBMS (such as sqlite) may not support this feature.
R
Prefetch
boolean
whether the connection performs data prefetching.
R
ServerInfo
string
the information of DBMS server.
R
ServerVersion
string
the version information of DBMS server.
R
Timeout
int
timeout settings for the connection.
Username
string
the username for establishing DB connection.
Events
Methods
Name
Description
addParsedObject
Processes an object that is created during parsing template. (inherited from
TComponent
)
attachEventHandler
Attaches an event handler to an event. (inherited from
TComponent
)
beginTransaction
Starts a transaction.
canGetProperty
Determines whether a property can be read. (inherited from
TComponent
)
canSetProperty
Determines whether a property can be set. (inherited from
TComponent
)
P
close
Closes the currently active DB connection.
createCommand
Creates a command for execution.
createdOnTemplate
This method is invoked after the component is instantiated by a template. (inherited from
TComponent
)
detachEventHandler
Detaches an existing event handler. (inherited from
TComponent
)
evaluateExpression
Evaluates a PHP expression in the context of this control. (inherited from
TComponent
)
evaluateStatements
Evaluates a list of PHP statements. (inherited from
TComponent
)
getAttribute
Obtains a specific DB connection attribute information.
S
getAvailableDrivers
list of available PDO drivers @see http://www.
getEventHandlers
Returns the list of attached event handlers for an event. (inherited from
TComponent
)
getSubProperty
Evaluates a property path. (inherited from
TComponent
)
hasEvent
Determines whether an event is defined. (inherited from
TComponent
)
hasEventHandler
whether an event has been attached one or several handlers. (inherited from
TComponent
)
hasProperty
Determines whether a property is defined. (inherited from
TComponent
)
P
open
Opens DB connection if it is currently not .
quoteString
Quotes a string for use in a query.
raiseEvent
Raises an event. (inherited from
TComponent
)
setAttribute
Sets an attribute on the database connection.
P
setConnectionCharset
.
setSubProperty
Sets a value to a property path. (inherited from
TComponent
)
Derived classes
Mortgages
|
Free RPG
|
Wedding Flower Bouquet
|
Repair Bad Credit
|
Online Loans