validateInsert example



    /** * Compiles an insert query and returns the sql * * @return bool|string * * @throws DatabaseException */
    public function getCompiledInsert(bool $reset = true)
    {
        if ($this->validateInsert() === false) {
            return false;
        }

        $sql = $this->_insert(
            $this->db->protectIdentifiers(
                $this->removeAlias($this->QBFrom[0]),
                true,
                null,
                false
            ),
            array_keys($this->QBSet),
            
Home | Imprint | This part of the site doesn't use cookies.