protected function sqlinsert(array $fields, array $nums = null, array $bools = null) {
		$db = $this->db;

		$nums != null or $nums = [];
		$bools != null or $bools = [];

		$keys = array_keys($fields);
		$strs = array_diff($keys, $bools, $nums);

		$key_fields = \hlin\Arr::join(', ', $keys, function ($_, $val) {
			return "`$val`";
		});

		$value_fields = \hlin\Arr::join(', ', $keys, function ($_, $val) {
			return ":$val ";
		});

		$db->prepare
			(
				"	INSERT INTO `[table]`
						   ($key_fields)
					VALUES ($value_fields)
				",
				[ 'table' => $this->constants()['table'] ]
			)
			->strs($fields, $strs)
			->bools($fields, $bools)
			->nums($fields, $nums)
			->execute();

		return $db->lastInsertId();
	}
protected function sqlinsert(array $fields, array $nums = null, array $bools = null) {
		$db = $this->db;

		$nums != null or $nums = [];
		$bools != null or $bools = [];

		$keys = array_keys($fields);
		$strs = array_diff($keys, $bools, $nums);

		$key_fields = \hlin\Arr::join(', ', $keys, function ($_, $val) {
			return "`$val`";
		});

		$value_fields = \hlin\Arr::join(', ', $keys, function ($_, $val) {
			return ":$val ";
		});

		$db->prepare
			(
				"	INSERT INTO `[table]`
						   ($key_fields)
					VALUES ($value_fields)
				",
				[ 'table' => $this->constants()['table'] ]
			)
			->strs($fields, $strs)
			->bools($fields, $bools)
			->nums($fields, $nums)
			->execute();

		return $db->lastInsertId();
	}
protected function sqlinsert ( array $ fields , array $ nums = null , array $ bools = null ) { $ db = $ this -> db ; $ nums != null or $ nums = [ ] ; $ bools != null or $ bools = [ ] ; $ keys = array_keys ( $ fields ) ; $ strs = array_diff ( $ keys , $ bools , $ nums ) ; $ key_fields = \ hlin \ Arr :: join ( ', ' , $ keys , function ( $ _ , $ val ) { return "`$val`" ; } ) ; $ value_fields = \ hlin \ Arr :: join ( ', ' , $ keys , function ( $ _ , $ val ) { return ":$val " ; } ) ; $ db -> prepare ( "	INSERT INTO `[table]`
						   ($key_fields)
					VALUES ($value_fields)
				" , [ 'table' => $ this -> constants ( ) [ 'table' ] ] ) -> strs ( $ fields , $ strs ) -> bools ( $ fields , $ bools ) -> nums ( $ fields , $ nums ) -> execute ( ) ; return $ db -> lastInsertId ( ) ; }
Inserts fields, if bools or nums are specified the fields mentioned are
treated as strings.

@return int new entry id
Inserts fields if bools or nums are specified the fields mentioned are treated as strings .