$this->db->getLastQuery() CodeIgniter\Database\Query#106 (9)
  • Properties (10)
  • Available methods (19)
  • public db -> CodeIgniter\Database\MySQLi\Connection#95 (43)
    $this->db->getLastQuery()->db
    • Properties (43)
    • Available methods (74)
    • public connID -> mysqli#105 (0)
      $this->db->getLastQuery()->db->connID
      • Available methods (43)
      public dataCache -> array (0)
      $this->db->getLastQuery()->db->dataCache
      public DBDriver -> string (6) "MySQLi"
      $this->db->getLastQuery()->db->DBDriver
      public deleteHack -> boolean true
      $this->db->getLastQuery()->db->deleteHack
      public escapeChar -> string (1) "`"
      $this->db->getLastQuery()->db->escapeChar
      public likeEscapeChar -> string (1) "!"
      $this->db->getLastQuery()->db->likeEscapeChar
      public likeEscapeStr -> string (13) " ESCAPE '%s' "
      $this->db->getLastQuery()->db->likeEscapeStr
      public mysqli -> mysqli#105 (0)
      $this->db->getLastQuery()->db->mysqli
      • Available methods (43)
      public numberNative -> boolean false
      $this->db->getLastQuery()->db->numberNative
      public protectIdentifiers -> boolean true
      $this->db->getLastQuery()->db->protectIdentifiers
      public resultID -> mysqli_result#107 (0)
      $this->db->getLastQuery()->db->resultID
      • Available methods (16)
      • Iterator
      public resultMode -> integer 0
      $this->db->getLastQuery()->db->resultMode
      public transEnabled -> boolean true
      $this->db->getLastQuery()->db->transEnabled
      public transStrict -> boolean true
      $this->db->getLastQuery()->db->transStrict
      protected aliasedTables -> array (0)
      protected charset -> string (4) "utf8"
      protected compress -> boolean false
      protected connectDuration -> double 0.00072407722473145
      protected connectTime -> double 1784182971.7983
      protected database -> string (18) "ivetsystem_ssghana"
      protected DBCollat -> string (15) "utf8_general_ci"
      protected DBDebug -> boolean true
      protected DBPrefix -> string (0) ""
      protected DSN -> string (0) ""
      protected encrypt -> boolean false
      protected failover -> array (0)
      protected hostname -> string (9) "localhost"
      protected lastQuery -> CodeIgniter\Database\Query#106 (9) Recursion
      protected password -> string (12) "81&JSjX(3p@d"
      protected pConnect -> boolean false
      protected port -> integer 3306
      protected pregEscapeChar -> array (4)
      1 => string (1) "`"
      0 => string (1) "`"
      3 => string (1) "`"
      2 => string (1) "`"
      protected pretend -> boolean false
      protected queryClass -> string (26) "CodeIgniter\Database\Query"
      protected reservedIdentifiers -> array (1)
      0 => string (1) "*"
      protected strictOn -> boolean false
      protected subdriver -> null
      protected swapPre -> string (0) ""
      protected transDepth -> integer 0
      protected transException -> boolean false
      protected transFailure -> boolean false
      protected transStatus -> boolean true
      protected username -> string (13) "ivetsyst_main"
    • public connect(bool $persistent = false): false|mysqli Connect to the database.
      $this->db->getLastQuery()->db->connect(bool $persistent = false)
      /**
      * Connect to the database.
      *
      * @return false|mysqli
      *
      * @throws DatabaseException
      */
      
      Defined in .../Database/MySQLi/Connection.php:89
      public reconnect() Keep or establish the connection if no queries have been sent for a length of...
      $this->db->getLastQuery()->db->reconnect()
      /**
      * 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
      public setDatabase(string $databaseName): bool Select a specific database table to use.
      $this->db->getLastQuery()->db->setDatabase(string $databaseName)
      /**
      * Select a specific database table to use.
      */
      
      Defined in .../Database/MySQLi/Connection.php:256
      public getVersion(): string Returns a string containing the version of the database being used.
      $this->db->getLastQuery()->db->getVersion()
      /**
      * Returns a string containing the version of the database being used.
      */
      
      Defined in .../Database/MySQLi/Connection.php:278
      public affectedRows(): int Returns the total number of rows affected by this query.
      $this->db->getLastQuery()->db->affectedRows()
      /**
      * Returns the total number of rows affected by this query.
      */
      
      Defined in .../Database/MySQLi/Connection.php:335
      public escapeLikeStringDirect($str): string|string[] Escape Like String Direct There are a few instances where MySQLi queries cann...
      $this->db->getLastQuery()->db->escapeLikeStringDirect($str)
      /**
      * 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
      public error(): array Returns the last error code and message. Must return this format: ['code' => ...
      $this->db->getLastQuery()->db->error()
      /**
      * 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
      public insertID(): int Insert ID
      $this->db->getLastQuery()->db->insertID()
      /**
      * Insert ID
      */
      
      Defined in .../Database/MySQLi/Connection.php:586
      public __construct(array $params) Saves our connection settings.
      new \CodeIgniter\Database\MySQLi\Connection(array $params)
      /**
      * Saves our connection settings.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:346
      public initialize(): void Initializes the database connection/settings.
      $this->db->getLastQuery()->db->initialize()
      /**
      * Initializes the database connection/settings.
      *
      * @return void
      *
      * @throws DatabaseException
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:375
      public close() Close the database connection.
      $this->db->getLastQuery()->db->close()
      /**
      * Close the database connection.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:442
      public persistentConnect(): false|object|resource Create a persistent database connection.
      $this->db->getLastQuery()->db->persistentConnect()
      /**
      * Create a persistent database connection.
      *
      * @return         false|object|resource
      * @phpstan-return false|TConnection
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:463
      public getConnection(?string $alias = null): false|object|resource Returns the actual connection object. If both a 'read' and 'write' connection...
      $this->db->getLastQuery()->db->getConnection(?string $alias = null)
      /**
      * 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
      public getDatabase(): string Returns the name of the current database being used.
      $this->db->getLastQuery()->db->getDatabase()
      /**
      * Returns the name of the current database being used.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:486
      public setPrefix(string $prefix = ''): string Set DB Prefix
      $this->db->getLastQuery()->db->setPrefix(string $prefix = '')
      /**
      * 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
      public getPrefix(): string Returns the database prefix.
      $this->db->getLastQuery()->db->getPrefix()
      /**
      * Returns the database prefix.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:506
      public getPlatform(): string The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
      $this->db->getLastQuery()->db->getPlatform()
      /**
      * The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:514
      public setAliasedTables(array $aliases): $this Sets the Table Aliases to use. These are typically collected during use of th...
      $this->db->getLastQuery()->db->setAliasedTables(array $aliases)
      /**
      * 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
      public addTableAlias(string $table): $this Add a table alias to our list.
      $this->db->getLastQuery()->db->addTableAlias(string $table)
      /**
      * Add a table alias to our list.
      *
      * @return $this
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:538
      public query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = ''): BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query Orchestrates a query against the database. Queries must use Database\Statemen...
      $this->db->getLastQuery()->db->query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = '')
      /**
      * 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
      public simpleQuery(string $sql): false|object|resource Performs a basic query against the database. No binding or caching is perform...
      $this->db->getLastQuery()->db->simpleQuery(string $sql)
      /**
      * 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
      public transOff() Disable Transactions
      $this->db->getLastQuery()->db->transOff()
      /**
      * Disable Transactions
      *
      * This permits transactions to be disabled at run-time.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:701
      public transStrict(bool $mode = true): $this Enable/disable Transaction Strict Mode
      $this->db->getLastQuery()->db->transStrict(bool $mode = true)
      /**
      * 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
      public transStart(bool $testMode = false): bool Start Transaction
      $this->db->getLastQuery()->db->transStart(bool $testMode = false)
      /**
      * Start Transaction
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:730
      public transException(bool $transExcetion): $this If set to true, exceptions are thrown during transactions.
      $this->db->getLastQuery()->db->transException(bool $transExcetion)
      /**
      * If set to true, exceptions are thrown during transactions.
      *
      * @return $this
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:744
      public transComplete(): bool Complete Transaction
      $this->db->getLastQuery()->db->transComplete()
      /**
      * Complete Transaction
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:754
      public transStatus(): bool Lets you retrieve the transaction flag to determine if it has failed
      $this->db->getLastQuery()->db->transStatus()
      /**
      * Lets you retrieve the transaction flag to determine if it has failed
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:780
      public transBegin(bool $testMode = false): bool Begin Transaction
      $this->db->getLastQuery()->db->transBegin(bool $testMode = false)
      /**
      * Begin Transaction
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:788
      public transCommit(): bool Commit Transaction
      $this->db->getLastQuery()->db->transCommit()
      /**
      * Commit Transaction
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:822
      public transRollback(): bool Rollback Transaction
      $this->db->getLastQuery()->db->transRollback()
      /**
      * Rollback Transaction
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:841
      public table($tableName): BaseBuilder Returns a non-shared new instance of the query builder for this connection.
      $this->db->getLastQuery()->db->table($tableName)
      /**
      * 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
      public newQuery(): CodeIgniter\Database\BaseBuilder Returns a new instance of the BaseBuilder class with a cleared FROM clause.
      $this->db->getLastQuery()->db->newQuery()
      /**
      * Returns a new instance of the BaseBuilder class with a cleared FROM clause.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:895
      public prepare(Closure $func, array $options = array()): BasePreparedQuery|null Creates a prepared statement with the database that can then be used to execu...
      $this->db->getLastQuery()->db->prepare(Closure $func, array $options = array())
      /**
      * 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
      public getLastQuery(): Query Returns the last query's statement object.
      $this->db->getLastQuery()->db->getLastQuery()
      /**
      * Returns the last query's statement object.
      *
      * @return Query
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:949
      public showLastQuery(): string Returns a string representation of the last query's statement object.
      $this->db->getLastQuery()->db->showLastQuery()
      /**
      * Returns a string representation of the last query's statement object.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:957
      public getConnectStart(): ?float Returns the time we started to connect to this database in seconds with micro...
      $this->db->getLastQuery()->db->getConnectStart()
      /**
      * 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
      public getConnectDuration(int $decimals = 6): string Returns the number of seconds with microseconds that it took to connect to th...
      $this->db->getLastQuery()->db->getConnectDuration(int $decimals = 6)
      /**
      * 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
      public protectIdentifiers($item, bool $prefixSingle = false, ?bool $protectIdentifiers = null, bool $fieldExists = true): array|string Protect Identifiers
      $this->db->getLastQuery()->db->protectIdentifiers($item, bool $prefixSingle = false, ?bool $protectIdentifiers = null, bool $fieldExists = true)
      /**
      * 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
      public escapeIdentifiers($item): array|string Escape the SQL Identifiers
      $this->db->getLastQuery()->db->escapeIdentifiers($item)
      /**
      * 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
      public prefixTable(string $table = ''): string Prepends a database prefix if one exists in configuration
      $this->db->getLastQuery()->db->prefixTable(string $table = '')
      /**
      * Prepends a database prefix if one exists in configuration
      *
      * @throws DatabaseException
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1232
      public escape($str): array|float|int|string "Smart" Escape String
      $this->db->getLastQuery()->db->escape($str)
      /**
      * "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
      public escapeString($str, bool $like = false): string|string[] Escape String
      $this->db->getLastQuery()->db->escapeString($str, bool $like = false)
      /**
      * 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
      public escapeLikeString($str): string|string[] Escape LIKE String
      $this->db->getLastQuery()->db->escapeLikeString($str)
      /**
      * 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
      public callFunction(string $functionName, $params): bool This function enables you to call PHP database functions that are not nativel...
      $this->db->getLastQuery()->db->callFunction(string $functionName, $params)
      /**
      * 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
      public listTables(bool $constrainByPrefix = false): array|false Returns an array of table names
      $this->db->getLastQuery()->db->listTables(bool $constrainByPrefix = false)
      /**
      * Returns an array of table names
      *
      * @return array|false
      *
      * @throws DatabaseException
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1390
      public tableExists(string $tableName, bool $cached = true): bool Determine if a particular table exists
      $this->db->getLastQuery()->db->tableExists(string $tableName, bool $cached = true)
      /**
      * 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
      public getFieldNames(string $table): array|false Fetch Field Names
      $this->db->getLastQuery()->db->getFieldNames(string $table)
      /**
      * Fetch Field Names
      *
      * @return array|false
      *
      * @throws DatabaseException
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1467
      public fieldExists(string $fieldName, string $tableName): bool Determine if a particular field exists
      $this->db->getLastQuery()->db->fieldExists(string $fieldName, string $tableName)
      /**
      * Determine if a particular field exists
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1512
      public getFieldData(string $table): stdClass[] Returns an object with field data
      $this->db->getLastQuery()->db->getFieldData(string $table)
      /**
      * Returns an object with field data
      *
      * @return stdClass[]
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1522
      public getIndexData(string $table): array Returns an object with key data
      $this->db->getLastQuery()->db->getIndexData(string $table)
      /**
      * Returns an object with key data
      *
      * @return array
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1532
      public getForeignKeyData(string $table): array Returns an object with foreign key data
      $this->db->getLastQuery()->db->getForeignKeyData(string $table)
      /**
      * Returns an object with foreign key data
      *
      * @return array
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1542
      public disableForeignKeyChecks(): bool Disables foreign key checks temporarily.
      $this->db->getLastQuery()->db->disableForeignKeyChecks()
      /**
      * Disables foreign key checks temporarily.
      *
      * @return bool
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1597
      public enableForeignKeyChecks(): bool Enables foreign key checks temporarily.
      $this->db->getLastQuery()->db->enableForeignKeyChecks()
      /**
      * Enables foreign key checks temporarily.
      *
      * @return bool
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1614
      public pretend(bool $pretend = true): $this Allows the engine to be set into a mode where queries are not actually execut...
      $this->db->getLastQuery()->db->pretend(bool $pretend = true)
      /**
      * 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
      public resetDataCache(): $this Empties our data cache. Especially helpful during testing.
      $this->db->getLastQuery()->db->resetDataCache()
      /**
      * Empties our data cache. Especially helpful during testing.
      *
      * @return $this
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1646
      public isWriteType($sql): bool Determines if the statement is a write-type query or not.
      $this->db->getLastQuery()->db->isWriteType($sql)
      /**
      * 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
      public __get(string $key): array|bool|float|int|object|resource|string|null Accessor for properties if they exist.
      /**
      * 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
      public __isset(string $key): bool Checker for properties existence.
      /**
      * Checker for properties existence.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1766
      protected _close() Close the database connection.
      /**
      * Close the database connection.
      */
      
      Defined in .../Database/MySQLi/Connection.php:248
      protected execute(string $sql): false|mysqli_result; Executes the query against the database.
      /**
      * Executes the query against the database.
      *
      * @return false|mysqli_result;
      */
      
      Defined in .../Database/MySQLi/Connection.php:296
      protected prepQuery(string $sql): string Prep the query. If needed, each database adapter can prep the query string
      /**
      * Prep the query. If needed, each database adapter can prep the query string
      */
      
      Defined in .../Database/MySQLi/Connection.php:321
      protected _escapeString(string $str): string Platform-dependant string escape
      /**
      * Platform-dependant string escape
      */
      
      Defined in .../Database/MySQLi/Connection.php:343
      protected _listTables(bool $prefixLimit = false, ?string $tableName = null): string Generates the SQL for listing tables in a platform-dependent manner. Uses esc...
      /**
      * 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
      protected _listColumns(string $table = ''): string Generates a platform-specific query string so that the column names can be fe...
      /**
      * Generates a platform-specific query string so that the column names can be fetched.
      */
      
      Defined in .../Database/MySQLi/Connection.php:406
      protected _fieldData(string $table): array Returns an array of objects with field data
      /**
      * Returns an array of objects with field data
      *
      * @return stdClass[]
      *
      * @throws DatabaseException
      */
      
      Defined in .../Database/MySQLi/Connection.php:418
      protected _indexData(string $table): array Returns an array of objects with index data
      /**
      * Returns an array of objects with index data
      *
      * @return stdClass[]
      *
      * @throws DatabaseException
      * @throws LogicException
      */
      
      Defined in .../Database/MySQLi/Connection.php:451
      protected _foreignKeyData(string $table): array Returns an array of objects with Foreign key data
      /**
      * Returns an array of objects with Foreign key data
      *
      * @return stdClass[]
      *
      * @throws DatabaseException
      */
      
      Defined in .../Database/MySQLi/Connection.php:496
      protected _disableForeignKeyChecks(): string Returns platform-specific SQL to disable foreign key checks.
      /**
      * Returns platform-specific SQL to disable foreign key checks.
      *
      * @return string
      */
      
      Defined in .../Database/MySQLi/Connection.php:546
      protected _enableForeignKeyChecks(): string Returns platform-specific SQL to enable foreign key checks.
      /**
      * Returns platform-specific SQL to enable foreign key checks.
      *
      * @return string
      */
      
      Defined in .../Database/MySQLi/Connection.php:556
      protected _transBegin(): bool Begin Transaction
      /**
      * Begin Transaction
      */
      
      Defined in .../Database/MySQLi/Connection.php:594
      protected _transCommit(): bool Commit Transaction
      /**
      * Commit Transaction
      */
      
      Defined in .../Database/MySQLi/Connection.php:604
      protected _transRollback(): bool Rollback Transaction
      /**
      * Rollback Transaction
      */
      
      Defined in .../Database/MySQLi/Connection.php:618
      protected getDriverFunctionPrefix(): string Get the prefix of the function to access the DB.
      /**
      * Get the prefix of the function to access the DB.
      */
      
      Inherited from CodeIgniter\Database\BaseConnection
      Defined in .../Database/BaseConnection.php:1374
      protected foreignKeyDataToObjects(array $data): array[ Converts array of arrays generated by _foreignKeyData() to array of objects
      /**
      * 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:1564
    protected bindMarker -> string (1) "?"
    protected binds -> array (1)
    mac_address => array (2)
    0 => string (9) "webadqr02"
    1 => boolean true
    protected endTime -> double 1784182971.8004
    protected errorCode -> null
    protected errorString -> null
    protected finalQueryString -> string (63) "SELECT * FROM `vw_qr_devices` WHERE `mac_address` = 'webadqr02'"
    SELECT *
    FROM `vw_qr_devices`
    WHERE `mac_address` = 'webadqr02'
    
    protected originalQueryString -> string (65) "SELECT * FROM `vw_qr_devices` WHERE `mac_address` = :mac_address:"
    SELECT *
    FROM `vw_qr_devices`
    WHERE `mac_address` = :mac_address:
    
    protected startTime -> double 1784182971.7995
    protected swappedQueryString -> undefined
  • public __construct(CodeIgniter\Database\ConnectionInterface $db)
    new \CodeIgniter\Database\Query(CodeIgniter\Database\ConnectionInterface $db)
    Defined in .../Database/Query.php:94
    public setQuery(string $sql, $binds = null, bool $setEscape = true): $this Sets the raw query string to use for this statement.
    $this->db->getLastQuery()->setQuery(string $sql, $binds = null, bool $setEscape = true)
    /**
    * Sets the raw query string to use for this statement.
    *
    * @param mixed $binds
    *
    * @return $this
    */
    
    Defined in .../Database/Query.php:106
    public setBinds(array $binds, bool $setEscape = true): $this Will store the variables to bind into the query later.
    $this->db->getLastQuery()->setBinds(array $binds, bool $setEscape = true)
    /**
    * Will store the variables to bind into the query later.
    *
    * @return $this
    */
    
    Defined in .../Database/Query.php:137
    public getQuery(): string Returns the final, processed query string after binding, etal has been perfor...
    $this->db->getLastQuery()->getQuery()
    /**
    * Returns the final, processed query string after binding, etal
    * has been performed.
    */
    
    Defined in .../Database/Query.php:156
    public setDuration(float $start, ?float $end = null): $this Records the execution time of the statement using microtime(true) for it's st...
    $this->db->getLastQuery()->setDuration(float $start, ?float $end = null)
    /**
    * 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
    public getStartTime(bool $returnRaw = false, int $decimals = 6): float|string Returns the start time in seconds with microseconds.
    $this->db->getLastQuery()->getStartTime(bool $returnRaw = false, int $decimals = 6)
    /**
    * Returns the start time in seconds with microseconds.
    *
    * @return float|string
    */
    
    Defined in .../Database/Query.php:190
    public getDuration(int $decimals = 6): string Returns the duration of this query during execution, or null if the query has...
    $this->db->getLastQuery()->getDuration(int $decimals = 6)
    /**
    * 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
    public setError(int $code, string $error): $this Stores the error description that happened for this query.
    $this->db->getLastQuery()->setError(int $code, string $error)
    /**
    * Stores the error description that happened for this query.
    *
    * @return $this
    */
    
    Defined in .../Database/Query.php:215
    public hasError(): bool Reports whether this statement created an error not.
    $this->db->getLastQuery()->hasError()
    /**
    * Reports whether this statement created an error not.
    */
    
    Defined in .../Database/Query.php:226
    public getErrorCode(): int Returns the error code created while executing this statement.
    $this->db->getLastQuery()->getErrorCode()
    /**
    * Returns the error code created while executing this statement.
    */
    
    Defined in .../Database/Query.php:234
    public getErrorMessage(): string Returns the error message created while executing this statement.
    $this->db->getLastQuery()->getErrorMessage()
    /**
    * Returns the error message created while executing this statement.
    */
    
    Defined in .../Database/Query.php:242
    public isWriteType(): bool Determines if the statement is a write-type query or not.
    $this->db->getLastQuery()->isWriteType()
    /**
    * Determines if the statement is a write-type query or not.
    */
    
    Defined in .../Database/Query.php:250
    public swapPrefix(string $orig, string $swap): $this Swaps out one table prefix for a new one.
    $this->db->getLastQuery()->swapPrefix(string $orig, string $swap)
    /**
    * Swaps out one table prefix for a new one.
    *
    * @return $this
    */
    
    Defined in .../Database/Query.php:260
    public getOriginalQuery(): string Returns the original SQL that was passed into the system.
    $this->db->getLastQuery()->getOriginalQuery()
    /**
    * Returns the original SQL that was passed into the system.
    */
    
    Defined in .../Database/Query.php:277
    public debugToolbarDisplay(): string Returns string to display in debug toolbar
    $this->db->getLastQuery()->debugToolbarDisplay()
    /**
    * Returns string to display in debug toolbar
    */
    
    Defined in .../Database/Query.php:369
    public __toString(): string Return text representation of the query
    (string) $this->db->getLastQuery()
    /**
    * Return text representation of the query
    */
    
    Defined in .../Database/Query.php:423
    protected compileBinds() Escapes and inserts any binds into the finalQueryString property.
    /**
    * Escapes and inserts any binds into the finalQueryString property.
    *
    * @see https://regex101.com/r/EUEhay/5
    */
    
    Defined in .../Database/Query.php:287
    protected matchNamedBinds(string $sql, array $binds): string Match bindings
    /**
    * Match bindings
    */
    
    Defined in .../Database/Query.php:315
    protected matchSimpleBinds(string $sql, array $binds, int $bindCount, int $ml): string Match bindings
    /**
    * Match bindings
    */
    
    Defined in .../Database/Query.php:339
IVETSYS :: Sign out

Sign out


Kindly check and enter the verification code you
recieved via SMS to Sign out
account_box
CANCEL CLEAR