fac-rs | apsw | |
---|---|---|
1 | 3 | |
8 | 694 | |
- | - | |
5.6 | 9.6 | |
9 months ago | 8 days ago | |
Rust | Python | |
Apache License 2.0 | OSI Approved |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fac-rs
-
Hosting SQLite databases on GitHub Pages (or any static file hoster)
I wrote a similar thing in Rust for a Factorio mod manager - mods are hosted on the remote HTTP server as ZIP files and the mod manager needs a single info.json file from the ZIP for the mod metadata, so it avoids downloading the whole mod and then unpacking it by building a file abstraction that uses HTTP range queries to download chunks. For ZIP files the directory is stored at the end at an unknown offset, so the read pattern is to gradually seek backwards from the end until you find the start of the directory, then find the file entry, then read the file.
I didn't fiddle with the window sizes like the TFA, but I did optimize it so that reading chunk N+1 of the file reused the response readed of chunk N rather than making a new request. Furthermore I keep an LRU cache of the last three chunks rather than keep all of them in memory, because the ZIP files are each only read once.
[1]: https://github.com/Arnavion/fac-rs/blob/master/src/solve/web...
[2]: https://github.com/Arnavion/fac-rs/blob/master/src/solve/zip...
apsw
-
SQLite version of SQL Server "linkedin server", or another way to query another db from within SQLite?
You can do this with virtual tables, but you'd have to implement the code for the vtab yourself. If you know Python, the APSW SQLite driver supports vtabs. The default one that comes with most Python distros does not
- Hosting SQLite databases on GitHub Pages (or any static file hoster)
-
What's New in SQLite 3.35
There is also this, which seems pretty good: https://github.com/rogerbinns/apsw
(haven't tried it yet)
What are some alternatives?
sqltorrent
SuperSQLite - A supercharged SQLite library for Python
LevelDB - LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
dataset - Easy-to-use data handling for SQL data stores with support for implicit table creation, bulk loading, and transactions.
alasql - AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
pymssql - Official home for the pymssql source code.
dalliance - Interactive web-based genome browser.
asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.
datasette - An open source multi-tool for exploring and publishing data
awesome-mysql - A curated list of awesome MySQL software, libraries, tools and resources
duckdb - DuckDB is an in-process SQL OLAP Database Management System
clickhouse-driver - ClickHouse Python Driver with native interface support