Skip to content

Commit 9098744

Browse files
committed
Rename to Limbo
1 parent de6f327 commit 9098744

14 files changed

+42
-42
lines changed

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 the Lig authors. All rights reserved. MIT license.
1+
# Copyright 2023 the Limbo authors. All rights reserved. MIT license.
22

33
[workspace]
44
resolver = "2"
@@ -9,7 +9,7 @@ members = [
99
]
1010

1111
[workspace.package]
12-
authors = ["the Lig authors"]
12+
authors = ["the Limbo authors"]
1313
edition = "2021"
1414
license = "MIT"
15-
repository = "https://github.com/penberg/lig"
15+
repository = "https://github.com/penberg/limbo"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
all:
22
cargo build
3-
cargo build --package lig-wasm --target wasm32-wasi
3+
cargo build --package limbo-wasm --target wasm32-wasi
44
.PHONY: all

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<img src="lig.png" width="200" align="right" />
1+
<img src="limbo.png" width="200" align="right" />
22

3-
# Lig
3+
# Limbo
44

55
A modern SQLite-compatible database library built with Rust.
66

@@ -12,7 +12,7 @@ A modern SQLite-compatible database library built with Rust.
1212

1313
## Getting Started
1414

15-
Lig is currently read-only. You can either use the `sqlite3` program to create a database:
15+
Limbo is currently read-only. You can either use the `sqlite3` program to create a database:
1616

1717
```console
1818
$ sqlite3 database.db
@@ -29,11 +29,11 @@ or use the testing script to generate one for you:
2929
./testing/gen-database.py
3030
```
3131

32-
You can then start the Lig shell with:
32+
You can then start the Limbo shell with:
3333

3434
```console
3535
$ cargo run database.db
36-
Welcome to Lig SQL shell!
36+
Welcome to Limbo SQL shell!
3737
> SELECT * FROM users LIMIT 1;
3838
|1|Cody|Miller|mhurst@example.org|525.595.7319x21268|33667 Shaw Extension Suite 104|West Robert|VA|45161|`
3939
```
@@ -72,7 +72,7 @@ This project is licensed under the [MIT license].
7272
### Contribution
7373

7474
Unless you explicitly state otherwise, any contribution intentionally submitted
75-
for inclusion in Lig by you, shall be licensed as MIT, without any additional
75+
for inclusion in Limbo by you, shall be licensed as MIT, without any additional
7676
terms or conditions.
7777

78-
[MIT license]: https://github.com/penberg/lig/blob/main/LICENSE.md
78+
[MIT license]: https://github.com/penberg/limbo/blob/main/LICENSE.md

bindings/wasm/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "lig-wasm"
2+
name = "limbo-wasm"
33
version = "0.0.0"
44
authors.workspace = true
55
edition.workspace = true
@@ -12,5 +12,5 @@ path = "lib.rs"
1212

1313
[dependencies]
1414
anyhow = "1.0.75"
15-
lig_core = { path = "../../core", default-features = false }
15+
limbo_core = { path = "../../core", default-features = false }
1616
wasm-bindgen = "0.2"

bindings/wasm/examples/example.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import lig from "../pkg/lig_wasm.js";
1+
import limbo from "../pkg/limbo_wasm.js";
22

3-
const db = lig.Database.open();
3+
const db = limbo.Database.open();

bindings/wasm/examples/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "lig-example",
2+
"name": "limbo-example",
33
"version": "1.0.0",
44
"description": "",
55
"type": "module",

bindings/wasm/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ use wasm_bindgen::prelude::*;
44

55
#[wasm_bindgen]
66
pub struct Database {
7-
_inner: lig_core::Database,
7+
_inner: limbo_core::Database,
88
}
99

1010
#[wasm_bindgen]
1111
impl Database {
1212
pub fn open(_path: &str) -> Database {
13-
let storage = lig_core::Storage::from_io(Arc::new(IO {}));
14-
let inner = lig_core::Database::open(storage).unwrap();
13+
let storage = limbo_core::Storage::from_io(Arc::new(IO {}));
14+
let inner = limbo_core::Database::open(storage).unwrap();
1515
Database { _inner: inner }
1616
}
1717
}
1818

1919
pub struct IO {}
2020

21-
impl lig_core::StorageIO for IO {
22-
fn get(&self, _page_idx: usize, _buf: &mut lig_core::Buffer) -> Result<()> {
21+
impl limbo_core::StorageIO for IO {
22+
fn get(&self, _page_idx: usize, _buf: &mut limbo_core::Buffer) -> Result<()> {
2323
todo!();
2424
}
2525
}

cli/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Copyright 2023 the Lig authors. All rights reserved. MIT license.
1+
# Copyright 2023 the Limbo authors. All rights reserved. MIT license.
22

33
[package]
4-
name = "lig"
4+
name = "limbo"
55
version = "0.0.0"
66
authors.workspace = true
7-
default-run = "lig"
7+
default-run = "limbo"
88
edition.workspace = true
99
license.workspace = true
1010
repository.workspace = true
11-
description = "The Lig interactive SQL shell"
11+
description = "The Limbo interactive SQL shell"
1212

1313
[[bin]]
14-
name = "lig"
14+
name = "limbo"
1515
path = "main.rs"
1616

1717
[dependencies]
1818
anyhow = "1.0.75"
1919
clap = { version = "4.4.0", features = ["derive"] }
2020
cli-table = "0.4.7"
2121
dirs = "5.0.1"
22-
lig_core = { path = "../core" }
22+
limbo_core = { path = "../core" }
2323
rustyline = "12.0.0"

cli/main.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use clap::{Parser, ValueEnum};
22
use cli_table::{Cell, Table};
3-
use lig_core::{Database, Value};
3+
use limbo_core::{Database, Value};
44
use rustyline::{error::ReadlineError, DefaultEditor};
55
use std::path::PathBuf;
66

@@ -30,16 +30,16 @@ struct Opts {
3030
fn main() -> anyhow::Result<()> {
3131
let opts = Opts::parse();
3232
let path = opts.database.to_str().unwrap();
33-
let io = lig_core::IO::new()?;
33+
let io = limbo_core::IO::new()?;
3434
let db = Database::open_file(io, path)?;
3535
let conn = db.connect();
3636
let mut rl = DefaultEditor::new()?;
3737
let home = dirs::home_dir().unwrap();
38-
let history_file = home.join(".lig_history");
38+
let history_file = home.join(".limbo_history");
3939
if history_file.exists() {
4040
rl.load_history(history_file.as_path())?;
4141
}
42-
println!("Welcome to Lig SQL shell!");
42+
println!("Welcome to Limbo SQL shell!");
4343
loop {
4444
let readline = rl.readline("\x1b[90m>\x1b[0m ");
4545
match readline {

core/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Copyright 2023 the Lig authors. All rights reserved. MIT license.
1+
# Copyright 2023 the Limbo authors. All rights reserved. MIT license.
22

33
[package]
4-
name = "lig_core"
4+
name = "limbo_core"
55
version = "0.0.0"
66
authors.workspace = true
77
edition.workspace = true
88
license.workspace = true
99
repository.workspace = true
10-
description = "The Lig database library"
10+
description = "The Limbo database library"
1111

1212
[lib]
13-
name = "lig_core"
13+
name = "limbo_core"
1414
path = "lib.rs"
1515

1616
[features]

core/benches/benchmark.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use criterion::{criterion_group, criterion_main, Criterion, Throughput};
2-
use lig_core::{Database, IO};
2+
use limbo_core::{Database, IO};
33
use pprof::criterion::{Output, PProfProfiler};
44

55
fn bench_db() -> Database {
@@ -8,7 +8,7 @@ fn bench_db() -> Database {
88
}
99

1010
fn bench(c: &mut Criterion) {
11-
let mut group = c.benchmark_group("lig");
11+
let mut group = c.benchmark_group("limbo");
1212
group.throughput(Throughput::Elements(1));
1313

1414
let db = bench_db();

lig.png

-385 KB
Binary file not shown.

limbo.png

71.1 KB
Loading

0 commit comments

Comments
 (0)