Skip to content

3. Statements

shturec edited this page Feb 17, 2017 · 7 revisions

Statements

Module: daoism/statements

Usage

API

Constructor

  • StatementBuilder

Properties

  • $log

Methods

  • builder

    Factory function for StatementBuilder instances. See the StatementBuilder wiki for details how to use

    Returns StatementBuilder instance

  • execute

    Executes the statement provided by the StatementBuilder argument, a query or update.

    • statementBuilder StatementBuilder Object

      The StatementBuilder instance used to generate a valid SQl statement to execute. It is expected that it has been built as appropriate by the time it is provided to the execute method.

    • connection Connection Object

      The data source connection to sue to execute the statement

    • parameters Object

      The parameters to bind to the statement if this is a prepared statement.

    Returns The result of the execute operation that is either a ResultSet to iterate in case of query, or the updated records count in case of update statement

Clone this wiki locally