void
autoExecute
( $table, $fields, $mode, [ $where = false], [ $forceUpdate = true], [ $magicq = false])
-
$table
-
$fields
-
$mode
-
$where
-
$forceUpdate
-
$magicq
void
execute
( $query, [ $inputarr = false])
getAll
void
getAll
( $query, [ $inputarr = false])
void
getCol
( $query, [ $inputarr = false])
void
getOne
( $query, [ $inputarr = false])
void
getRow
( $query, [ $inputarr = false])
pageExecute
void
pageExecute
(string $query, string $nrows, integer $page, [array $inputarr = false])
-
string
$query
-
string
$nrows
-
integer
$page
-
array
$inputarr
Parse a data source name
Additional keys can be added by appending a URI query string to the end of the DSN.
The format of the supplied DSN is in its fullest form:
phptype(dbsyntax)://username:password@protocol+hostspec/database?option=8&another=true
Most variations are allowed:
phptype://username:password@protocol+hostspec:110//usr/db_file.db?mode=0644
phptype://username:password@hostspec/database_name
phptype://username:password@hostspec
phptype://username@hostspec
phptype://hostspec/database
phptype://hostspec
phptype(dbsyntax)
phptype
array
parseDSN
(string $dsn)
-
string
$dsn: Data Source Name to be parsed
クエリを発行する
mixed
&query
(string $query, [ $inputarr = false])
-
string
$query: SQL文
-
$inputarr
void
replace
( $table, $arrFields, $keyCols, [ $autoQuote = false])
-
$table
-
$arrFields
-
$keyCols
-
$autoQuote
Inherited Methods
Inherited From Ethna_DB
Ethna_DB::Ethna_DB()
Ethna_DB::begin()
Ethna_DB::commit()
Ethna_DB::connect()
Ethna_DB::disconnect()
Ethna_DB::getDSN()
Ethna_DB::getMetaData()
Ethna_DB::isValid()
Ethna_DB::rollback()