libQuillDB 1.0.0
Virion for async SQLite and MySQL queries on a worker thread, with prepared statements kept in .sql files.
Baixar .phar
Descrição
libQuillDB
Async database access for plugins: queries run on a worker thread and come back as callbacks.
$db = QuillDB::open($this, $this->getConfig()->get("database"), ["sqlite" => "sqlite.sql", "mysql" => "mysql.sql"]);
$db->select("claims.in_chunk", ["x" => $x, "z" => $z], fn(array $rows) => $this->load($rows));
Queries live in .sql files with names:
-- #{ claims.in_chunk
-- # :x int
-- # :z int
SELECT * FROM claims WHERE chunk_x = :x AND chunk_z = :z;
-- #}
Mudanças
- Stable API
- Reconnects after MySQL timeouts
Versões
| Versão | API | Publicada | Downloads | |
|---|---|---|---|---|
| 1.0.0 | 5.0.0 – 5.99.0 | 2026-06-02 | 1,107 | – |
| 0.9.0 | 5.0.0 – 5.99.0 | 2025-10-05 | 553 | – |
Avaliações
Nenhuma avaliação ainda.
As avaliações estão desativadas na pré-visualização.