diff --git a/CHANGELOG.md b/CHANGELOG.md index cb82be8cd..d92d309a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.0.8 - 2024-11-20 + +### Added + +* Python package build and example usage (Pekka Enberg) + ## 0.0.7 - 2024-11-20 ### Added diff --git a/Cargo.lock b/Cargo.lock index a524f777c..91e458c37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -396,7 +396,7 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "core_tester" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "clap", @@ -1095,7 +1095,7 @@ dependencies = [ [[package]] name = "limbo" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "clap", @@ -1109,7 +1109,7 @@ dependencies = [ [[package]] name = "limbo-wasm" -version = "0.0.7" +version = "0.0.8" dependencies = [ "console_error_panic_hook", "js-sys", @@ -1119,7 +1119,7 @@ dependencies = [ [[package]] name = "limbo_core" -version = "0.0.7" +version = "0.0.8" dependencies = [ "cfg_block", "chrono", @@ -1154,7 +1154,7 @@ dependencies = [ [[package]] name = "limbo_sim" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anarchist-readable-name-generator-lib", "env_logger 0.10.2", @@ -1167,7 +1167,7 @@ dependencies = [ [[package]] name = "limbo_sqlite3" -version = "0.0.7" +version = "0.0.8" dependencies = [ "cbindgen", "env_logger 0.11.5", @@ -1610,7 +1610,7 @@ dependencies = [ [[package]] name = "py-limbo" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "limbo_core", diff --git a/Cargo.toml b/Cargo.toml index 2b444cde6..87675cc55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ members = [ exclude = ["perf/latency/limbo"] [workspace.package] -version = "0.0.7" +version = "0.0.8" authors = ["the Limbo authors"] edition = "2021" license = "MIT" diff --git a/README.md b/README.md index e36c7291e..f1377edbe 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,9 @@ ## Getting Started -First, install the `limbo` command line tool: +### CLI + +Instal `limbo` with: ``` curl --proto '=https' --tlsv1.2 -LsSf \ @@ -56,19 +58,42 @@ limbo> SELECT * FROM users; 2|bob ``` -You can also access the database from JavaScript: +### JavaScript (wip) + +Installation: + +```console +npm i limbo-wasm +``` + +Example usage: ```js import { Database } from 'limbo-wasm'; -const db = new Database('hello.db'); - +const db = new Database('sqlite.db'); const stmt = db.prepare('SELECT * FROM users'); - const users = stmt.all(); - console.log(users); ``` + +### Python (wip) + +```console +pip install limbo +``` + +Example usage: + +```python +import pylimbo + +con = pylimbo.connect("sqlite.db") +cur = con.cursor() +res = cur.execute("SELECT * FROM users") +print(res.fetchone()) +``` + ## Developing Run tests: diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 6fde664d6..afd6b7122 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -3,7 +3,7 @@ requires = ['maturin>=1,<2', 'typing_extensions'] build-backend = 'maturin' [project] -name = 'limbo' +name = 'pylimbo' description = "Limbo is a work-in-progress, in-process OLTP database management system, compatible with SQLite." requires-python = '>=3.9' classifiers = [ diff --git a/bindings/wasm/package.json b/bindings/wasm/package.json index 96465acbe..c49f0be7c 100644 --- a/bindings/wasm/package.json +++ b/bindings/wasm/package.json @@ -3,7 +3,7 @@ "collaborators": [ "the Limbo authors" ], - "version": "0.0.7", + "version": "0.0.8", "license": "MIT", "repository": { "type": "git",