Insert new records in table

db:insert(STRING $table, ARRAY $data)

db:insert('users', ['name' => 'amin', 'account_type' => '3'])
#=> [
#=>     "row_count" => 1,
#=>     "column_count" => 0,
#=>     "columns" => [],
#=>     "rows" => [],
#=>     "sql_state" => "00000",
#=>     "sql_query" => "INSERT INTO `users`(`name`,`account_type`)\nVALUES ('amin','3')",
#=>     "ok?" => TRUE,
#=>     "execution_time" => 0.002253,
#=>     "last_insert_id" => "0"
#=> ]

Copyright ©2013-2022 SunSed®. All rights reserved.