mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 00:45:37 +01:00
Limbo 0.0.8
This commit is contained in:
@@ -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
|
||||
|
||||
14
Cargo.lock
generated
14
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
37
README.md
37
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:
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"collaborators": [
|
||||
"the Limbo authors"
|
||||
],
|
||||
"version": "0.0.7",
|
||||
"version": "0.0.8",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user