메소드 |
설명 |
|
close ( ) : void |
Closes database connection. |
|
commit ( ) : void |
This method is part of the RedBean Transaction Management
mechanisms. |
|
exec ( string $sql, array $bindings = [], boolean $noevent = FALSE ) : void |
Executes an SQL Statement using an array of values to bind
If $noevent is TRUE then this function will not signal its
observers to notify about the SQL execution; this to prevent
infinite recursion when using observers. |
|
get ( string $sql, array $bindings = [] ) : array |
Executes an SQL Query and returns a resultset. |
|
getAffectedRows ( ) : integer |
Returns the number of rows that have been
affected by the last update statement. |
|
getAssoc ( string $sql, array $bindings = [] ) : array |
Executes the SQL query specified in $sql and takes
the first two columns of the resultset. This function transforms the
resultset into an associative array. Values from the the first column will
serve as keys while the values of the second column will be used as values. |
|
getAssocRow ( string $sql, array $bindings = [] ) : array |
Executes the SQL query specified in $sql and indexes
the row by the first column. |
|
getCell ( string $sql, array $bindings = [] ) : string |
Executes an SQL Query and returns a resultset. |
|
getCol ( string $sql, array $bindings = [] ) : array |
Executes an SQL Query and returns a resultset. |
|
getCursor ( string $sql, array $bindings = [] ) : redbeanphp\Cursor |
Returns a database agnostic Cursor object. |
|
getDatabase ( ) : mixed |
Returns the original database resource. This is useful if you want to
perform operations on the driver directly instead of working with the
adapter. RedBean will only access the adapter and never to talk
directly to the driver though. |
|
getInsertID ( ) : integer |
Returns the latest insert ID. |
|
getRow ( string $sql, array $bindings = [] ) : array |
Executes an SQL Query and returns a resultset. |
|
getSQL ( ) : string |
Should returns a string containing the most recent SQL query
that has been processed by the adapter. |
|
rollback ( ) : void |
This method is part of the RedBean Transaction Management
mechanisms. |
|
startTransaction ( ) : void |
This method is part of the RedBean Transaction Management
mechanisms. |
|