Class Database
Database model
Defined settings:
- array database
- string adapter
- string name, Database name
- string username
- string password
- string host
- integer port
Namespace: Phramework\Database
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 0.0.0
Todo: Add option to convert fetched data into objects insted of array
Located at Database.php
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 0.0.0
Todo: Add option to convert fetched data into objects insted of array
Located at Database.php
Methods summary
public static
|
|
public static
|
|
public static
string
|
|
public static
integer
|
|
public static
mixed
|
#
executeLastInsertId( string $query, array $parameters = [] )
Execute a query and return last instert id |
public static
array
|
#
executeAndFetch( string $query, array $parameters = [], $castModel = null )
Execute a query and fetch first row as associative array |
public static
array[]
|
#
executeAndFetchAll( string $query, array $parameters = [], $castModel = null )
Execute a query and fetch all rows as associative array |
public static
array
|
#
executeAndFetchArray( string $query, array $parameters = [] )
Execute a query and fetch first row as array |
public static
array[]
|
|
public static
mixed
|
#
bindExecuteLastInsertId( string $query, array $parameters = [] )
Bind Execute a query and return last instert id |
public static
integer
|
#
bindExecute( string $query, array $parameters = [] )
Bind Execute a query and return the row count |
public static
array
|
#
bindExecuteAndFetch( string $query, array $parameters = [], $castModel = null )
Bind Execute a query and fetch first row as associative array |
public static
array[]
|
#
bindExecuteAndFetchAll( string $query, array $parameters = [], $castModel = null )
Bind Execute a query and fetch all rows as associative array |
public static
|
Properties summary
protected static
|
$adapter
|
#
null
|