API Documentation for: 1.1.1
Show:

QueryResult Class

Namespace: Canteen\Database

The object when doing multiple queries or pooling

Constructor

QueryResult

(
  • sql
  • The
  • [field]
  • [position]
)

Parameters:

  • sql Query | String

    The query to execute

  • The String

    type of query 'getLength', 'getRow', 'getResult', 'getArray', 'execute'

  • [field] String optional

    Optional field name for getResult type only

  • [position] Int optional

    Optional position for getResult type only

Item Index

Properties

content

Mixed

The result of the data

field

String

The field name for getResult type

position

Int

The position number for getResult type

sql

Query | String

The SQL Query object or query string

type

String

The type of result