/** * Connect to the database. * * @return false|mysqli * * @throws DatabaseException */ Defined in .../Database/MySQLi/Connection.php:89
/** * Keep or establish the connection if no queries have been sent for * a length of time exceeding the server's idle timeout. */ Defined in .../Database/MySQLi/Connection.php:239
/** * Select a specific database table to use. */ Defined in .../Database/MySQLi/Connection.php:256
/** * Returns a string containing the version of the database being used. */ Defined in .../Database/MySQLi/Connection.php:278
/** * Returns the total number of rows affected by this query. */ Defined in .../Database/MySQLi/Connection.php:335
/** * Escape Like String Direct * There are a few instances where MySQLi queries cannot take the * additional "ESCAPE x" parameter for specifying the escape character * in "LIKE" strings, and this handles those directly with a backslash. * * @param string|string[] $str Input string * * @return string|string[] */ Defined in .../Database/MySQLi/Connection.php:362
/** * Returns the last error code and message. * Must return this format: ['code' => string|int, 'message' => string] * intval(code) === 0 means "no error". * * @return array<string, int|string> */ Defined in .../Database/MySQLi/Connection.php:568
/** * Insert ID */ Defined in .../Database/MySQLi/Connection.php:586
/** * Saves our connection settings. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:346
/** * Initializes the database connection/settings. * * @return void * * @throws DatabaseException */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:375
/** * Close the database connection. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:442
/** * Create a persistent database connection. * * @return false|object|resource * @phpstan-return false|TConnection */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:463
/** * Returns the actual connection object. If both a 'read' and 'write' * connection has been specified, you can pass either term in to * get that connection. If you pass either alias in and only a single * connection is present, it must return the sole connection. * * @return false|object|resource * @phpstan-return TConnection */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:477
/** * Returns the name of the current database being used. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:486
/** * Set DB Prefix * * Set's the DB Prefix to something new without needing to reconnect * * @param string $prefix The prefix */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:498
/** * Returns the database prefix. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:506
/** * The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc) */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:514
/** * Sets the Table Aliases to use. These are typically * collected during use of the Builder, and set here * so queries are built correctly. * * @return $this */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:526
/** * Add a table alias to our list. * * @return $this */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:538
/** * Orchestrates a query against the database. Queries must use * Database\Statement objects to store the query and build it. * This method works with the cache. * * Should automatically handle different connections for read/write * queries if needed. * * @param array|string|null $binds * * @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query * @phpstan-return BaseResult<TConnection, TResult>|bool|Query * * @todo BC set $queryClass default as null in 4.1 */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:570
/** * Performs a basic query against the database. No binding or caching * is performed, nor are transactions handled. Simply takes a raw * query string and returns the database-specific result id. * * @return false|object|resource * @phpstan-return false|TResult */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:687
/** * Disable Transactions * * This permits transactions to be disabled at run-time. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:701
/** * Enable/disable Transaction Strict Mode * * When strict mode is enabled, if you are running multiple groups of * transactions, if one group fails all subsequent groups will be * rolled back. * * If strict mode is disabled, each group is treated autonomously, * meaning a failure of one group will not affect any others * * @param bool $mode = true * * @return $this */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:720
/** * Start Transaction */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:730
/** * If set to true, exceptions are thrown during transactions. * * @return $this */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:744
/** * Complete Transaction */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:754
/** * Lets you retrieve the transaction flag to determine if it has failed */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:780
/** * Begin Transaction */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:788
/** * Commit Transaction */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:822
/** * Rollback Transaction */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:841
/** * Returns a non-shared new instance of the query builder for this connection. * * @param array|string $tableName * * @return BaseBuilder * * @throws DatabaseException */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:881
/** * Returns a new instance of the BaseBuilder class with a cleared FROM clause. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:895
/**
* Creates a prepared statement with the database that can then
* be used to execute multiple statements against. Within the
* closure, you would build the query in any normal way, though
* the Query Builder is the expected manner.
*
* Example:
* $stmt = $db->prepare(function($db)
* {
* return $db->table('users')
* ->where('id', 1)
* ->get();
* })
*
* @return BasePreparedQuery|null
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in .../Database/BaseConnection.php:921/** * Returns the last query's statement object. * * @return Query */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:949
/** * Returns a string representation of the last query's statement object. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:957
/** * Returns the time we started to connect to this database in * seconds with microseconds. * * Used by the Debug Toolbar's timeline. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:968
/** * Returns the number of seconds with microseconds that it took * to connect to the database. * * Used by the Debug Toolbar's timeline. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:979
/** * Protect Identifiers * * This function is used extensively by the Query Builder class, and by * a couple functions in this class. * It takes a column or table name (optionally with an alias) and inserts * the table prefix onto it. Some logic is necessary in order to deal with * column names that include the path. Consider a query like this: * * SELECT hostname.database.table.column AS c FROM hostname.database.table * * Or a query with aliasing: * * SELECT m.member_id, m.member_name FROM members AS m * * Since the column name can include up to four segments (host, DB, table, column) * or also have an alias prefix, we need to do a bit of work to figure this out and * insert the table prefix (if it exists) in the proper position, and escape only * the correct identifiers. * * @param array|string $item * @param bool $prefixSingle Prefix a table name with no segments? * @param bool $protectIdentifiers Protect table or column names? * @param bool $fieldExists Supplied $item contains a column name? * * @return array|string * @phpstan-return ($item is array ? array : string) */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1012
/** * Escape the SQL Identifiers * * This function escapes column and table names * * @param array|string $item * * @return array|string * @phpstan-return ($item is array ? array : string) */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1172
/** * Prepends a database prefix if one exists in configuration * * @throws DatabaseException */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1232
/** * "Smart" Escape String * * Escapes data based on type. * Sets boolean and null types * * @param array|bool|float|int|object|string|null $str * * @return array|float|int|string * @phpstan-return ($str is array ? array : float|int|string) */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1257
/** * Escape String * * @param string|string[] $str Input string * @param bool $like Whether or not the string will be used in a LIKE condition * * @return string|string[] */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1287
/** * Escape LIKE String * * Calls the individual driver for platform * specific escaping for LIKE conditions * * @param string|string[] $str * * @return string|string[] */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1329
/** * This function enables you to call PHP database functions that are not natively included * in CodeIgniter, in a platform independent manner. * * @param array ...$params * * @throws DatabaseException */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1352
/** * Returns an array of table names * * @return array|false * * @throws DatabaseException */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1390
/** * Determine if a particular table exists * * @param bool $cached Whether to use data cache */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1426
/** * Fetch Field Names * * @return array|false * * @throws DatabaseException */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1467
/** * Determine if a particular field exists */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1512
/** * Returns an object with field data * * @return stdClass[] */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1522
/** * Returns an object with key data * * @return array */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1532
/** * Returns an object with foreign key data * * @return array */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1542
/** * Disables foreign key checks temporarily. * * @return bool */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1597
/** * Enables foreign key checks temporarily. * * @return bool */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1614
/** * Allows the engine to be set into a mode where queries are not * actually executed, but they are still generated, timed, etc. * * This is primarily used by the prepared query functionality. * * @return $this */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1634
/** * Empties our data cache. Especially helpful during testing. * * @return $this */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1646
/** * Determines if the statement is a write-type query or not. * * @param string $sql */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1658
/** * Accessor for properties if they exist. * * @return array|bool|float|int|object|resource|string|null */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1754
/** * Checker for properties existence. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1766
/** * Close the database connection. */ Defined in .../Database/MySQLi/Connection.php:248
/** * Executes the query against the database. * * @return false|mysqli_result; */ Defined in .../Database/MySQLi/Connection.php:296
/** * Prep the query. If needed, each database adapter can prep the query string */ Defined in .../Database/MySQLi/Connection.php:321
/** * Platform-dependant string escape */ Defined in .../Database/MySQLi/Connection.php:343
/** * Generates the SQL for listing tables in a platform-dependent manner. * Uses escapeLikeStringDirect(). * * @param string|null $tableName If $tableName is provided will return only this table if exists. */ Defined in .../Database/MySQLi/Connection.php:388
/** * Generates a platform-specific query string so that the column names can be fetched. */ Defined in .../Database/MySQLi/Connection.php:406
/** * Returns an array of objects with field data * * @return stdClass[] * * @throws DatabaseException */ Defined in .../Database/MySQLi/Connection.php:418
/** * Returns an array of objects with index data * * @return stdClass[] * * @throws DatabaseException * @throws LogicException */ Defined in .../Database/MySQLi/Connection.php:451
/** * Returns an array of objects with Foreign key data * * @return stdClass[] * * @throws DatabaseException */ Defined in .../Database/MySQLi/Connection.php:496
/** * Returns platform-specific SQL to disable foreign key checks. * * @return string */ Defined in .../Database/MySQLi/Connection.php:546
/** * Returns platform-specific SQL to enable foreign key checks. * * @return string */ Defined in .../Database/MySQLi/Connection.php:556
/** * Begin Transaction */ Defined in .../Database/MySQLi/Connection.php:594
/** * Commit Transaction */ Defined in .../Database/MySQLi/Connection.php:604
/** * Rollback Transaction */ Defined in .../Database/MySQLi/Connection.php:618
/** * Get the prefix of the function to access the DB. */ Inherited from CodeIgniter\Database\BaseConnection Defined in .../Database/BaseConnection.php:1374
/**
* Converts array of arrays generated by _foreignKeyData() to array of objects
*
* @return array[
* {constraint_name} =>
* stdClass[
* 'constraint_name' => string,
* 'table_name' => string,
* 'column_name' => string[],
* 'foreign_table_name' => string,
* 'foreign_column_name' => string[],
* 'on_delete' => string,
* 'on_update' => string,
* 'match' => string
* ]
* ]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in .../Database/BaseConnection.php:1564SELECT * FROM `vw_qr_devices` WHERE `mac_address` = 'webadqr02'
SELECT * FROM `vw_qr_devices` WHERE `mac_address` = :mac_address:
Defined in .../Database/Query.php:94
/** * Sets the raw query string to use for this statement. * * @param mixed $binds * * @return $this */ Defined in .../Database/Query.php:106
/** * Will store the variables to bind into the query later. * * @return $this */ Defined in .../Database/Query.php:137
/** * Returns the final, processed query string after binding, etal * has been performed. */ Defined in .../Database/Query.php:156
/** * Records the execution time of the statement using microtime(true) * for it's start and end values. If no end value is present, will * use the current time to determine total duration. * * @return $this */ Defined in .../Database/Query.php:172
/** * Returns the start time in seconds with microseconds. * * @return float|string */ Defined in .../Database/Query.php:190
/** * Returns the duration of this query during execution, or null if * the query has not been executed yet. * * @param int $decimals The accuracy of the returned time. */ Defined in .../Database/Query.php:205
/** * Stores the error description that happened for this query. * * @return $this */ Defined in .../Database/Query.php:215
/** * Reports whether this statement created an error not. */ Defined in .../Database/Query.php:226
/** * Returns the error code created while executing this statement. */ Defined in .../Database/Query.php:234
/** * Returns the error message created while executing this statement. */ Defined in .../Database/Query.php:242
/** * Determines if the statement is a write-type query or not. */ Defined in .../Database/Query.php:250
/** * Swaps out one table prefix for a new one. * * @return $this */ Defined in .../Database/Query.php:260
/** * Returns the original SQL that was passed into the system. */ Defined in .../Database/Query.php:277
/** * Returns string to display in debug toolbar */ Defined in .../Database/Query.php:369
/** * Return text representation of the query */ Defined in .../Database/Query.php:423
/** * Escapes and inserts any binds into the finalQueryString property. * * @see https://regex101.com/r/EUEhay/5 */ Defined in .../Database/Query.php:287
/** * Match bindings */ Defined in .../Database/Query.php:315
/** * Match bindings */ Defined in .../Database/Query.php:339
Sign out