class ia\Sql\Mysql\MultipleInsert
- namespace: ia\Sql\Mysql
- Implements: Stringable
- Public Methods
- __construct( IaMysqli $db, string $insertIntoClause, string $onDuplicateClause = '', integer $maxLength = 5000, bool $simulate = false ) :
/**
* MultipleInsert::__construct()
*
* @param IaMysqli $db
* @param string $insertIntoClause
* @param string $onDuplicateClause
* @param integer $maxLength
* @param bool $simulate
* @return
*/
- valuesArray( array $values, array $fieldNameDontQuote = [] ) : bool
/**
* Add 1 value clause from an array ['fieldName'=>value]
*
* @param array $values
* @param array $fieldNameDontQuote
* @return bool
*/
- insertAllArrayOfValues( array $array, array $fieldNameDontQuote = [] ) : bool
/**
* An array of values to insert [[field1=>1,field2=>2,...],[field1=>11,field2=>12,...],...]
*
* @param array $array
* @param array $fieldNameDontQuote
* @return bool
*/
- valuesString( string $valueString ) : bool
/**
* MultipleInsert::valuesString()
*
* @param string $valueString
* @return bool
*/
- insertNow( ) :
/**
* Inserts all values received
*
* @return
*/
- get_valuesClauseNum( ) : int
/**
* MultipleInsert::get_valuesClauseNum()
*
* @return int
*/
- get_valuesCurrentNum( ) : int
/**
* MultipleInsert::get_valuesCurrentNum()
*
* @return int
*/
- get_insertsOkNum( ) : int
/**
* MultipleInsert::get_insertsOkNum()
*
* @return int
*/
- get_insertsErrorsNum( ) : int
/**
* MultipleInsert::get_insertsErrorsNum()
*
* @return int
*/
- get_insertLast( ) : string
/**
* MultipleInsert::get_insertLast()
*
* @return string
*/
- get_insertLastOk( ) : string
/**
* MultipleInsert::get_insertLastOk()
*
* @return string
*/
- get_currentLength( ) : int
/**
* MultipleInsert::get_currentLength()
*
* @return int
*/
- get_insertIntoLength( ) : int
/**
* MultipleInsert::get_insertIntoLength()
*
* @return int
*/
- get_simulate( ) : bool
/**
* MultipleInsert::get_simulate()
*
* @return bool
*/
- set_simulate( bool $simulate ) : bool
/**
* MultipleInsert::set_simulate()
*
* @param bool $simulate
* @return bool
*/
- get_allInserts( ) : array
/**
* MultipleInsert::get_allInserts()
*
* @return array
*/
- Calls:
- SqlBuilder
ia\Sql\Mysql\MultipleInsert
ia\Sql\Mysql\MultipleInsert
ia\Sql\Mysql\IacSqlException: No such file or directory in /lamp/www/iaLib/inc_ia/Sql/src/mysql/IaMysqli.php:497
Stack trace:
#0 /lamp/www/iaLib/inc_ia/Sql/src/mysql/IaMysqli.php(465): ia\Sql\Mysql\IaMysqli->connect_real('Connect to DB')
#1 /lamp/www/iaLib/ia_examples/usage/ia/Sql/Mysql/MultipleInsert_usage.php(35): ia\Sql\Mysql\IaMysqli->connect()
#2 /lamp/www/iaLib/ia_examples/template/ia_example_class.php(100): include('/lamp/www/iaLib...')
#3 /lamp/www/iaLib/ia_examples/ia/Sql/Mysql/MultipleInsert_example.php(10): include('/lamp/www/iaLib...')
#4 {main}