src/Sqlite/SqliteConnection.php
public function insert(string $table, array $values): Promise
    {
        return new Coroutine(function () use ($table, $values) {
            $sql = "INSERT INTO " . $this->quoteIdentifier($this->applySchemaObjectPrefix($table)) . " (";
            $sql .= \implode(', ', \array_map(function (string $col) {
                return $this->quoteIdentifier($col);
            }, \array_keys($values)));
            $sql .= ") VALUES (" . \implode(', ', \array_fill(0, \count($values), '?')) . ")";
            
            $result = yield $this->prepare($sql)->bindAll(\array_values($values))->execute();
            
            return $result->affectedRows();
        });
    }
public function insert(string $table, array $values): Promise
    {
        return new Coroutine(function () use ($table, $values) {
            $sql = "INSERT INTO " . $this->quoteIdentifier($this->applySchemaObjectPrefix($table)) . " (";
            $sql .= \implode(', ', \array_map(function (string $col) {
                return $this->quoteIdentifier($col);
            }, \array_keys($values)));
            $sql .= ") VALUES (" . \implode(', ', \array_fill(0, \count($values), '?')) . ")";
            
            $result = yield $this->prepare($sql)->bindAll(\array_values($values))->execute();
            
            return $result->affectedRows();
        });
    }
{@inheritdoc}