Pickles Framework Documentation

DB

Class DB

This class is responsible for handling database operations. It provides methods to interact with the database, such as querying, inserting, updating, and deleting records.

Table of Contents

Methods

statement()  : mixed
Executes a raw SQL statement with optional bound parameters.

Methods

statement()

Executes a raw SQL statement with optional bound parameters.

public static statement(string $query[, array<string|int, mixed> $bind = [] ]) : mixed
Parameters
$query : string

The raw SQL query to be executed.

$bind : array<string|int, mixed> = []

An associative array of parameters to bind to the query. The keys should match the placeholders in the query.

Return values
mixed

The result of the executed statement.


        
On this page

Search results