On this page, you will find more information about the libSQL Result and available functions.
LibSQLResult
class represents the result set of a LibSQL query. It provides methods for retrieving query results and metadata about the result set.
fetchArray
LibSQL::LIBSQL_BOTH
(optional): The fetching mode. Defaults to LibSQL::LIBSQL_BOTH
(both associative and numerical arrays).
LibSQL::LIBSQL_ASSOC
: Return an associative array.LibSQL::LIBSQL_NUM
: Return a numerical array.LibSQL::LIBSQL_BOTH
: Return both associative and numerical arrays.LibSQL::LIBSQL_ALL
: Return all results.LibSQL::LIBSQL_LAZY
: Return a generator for lazy-loading results.array|LibSQLIterator
- The fetched result setfinalize
reset
void
columnName
int $column
: The index of the column (zero-based).string
containing the name of the specified column.
columnType
int $column
: The index of the column (zero-based).string
containing the data type of the specified column.
numColumns
int
representing the total number of columns in the result set.