mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-07 20:45:01 +00:00
Fix URLs to point to github.com/tursodatabase/turso
This commit is contained in:
parent
e514a02478
commit
9c1b7897ac
27 changed files with 1059 additions and 2263 deletions
|
@ -34,7 +34,7 @@ version = "0.1.0-pre.3"
|
|||
authors = ["the Limbo authors"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
repository = "https://github.com/tursodatabase/limbo"
|
||||
repository = "https://github.com/tursodatabase/turso"
|
||||
|
||||
[workspace.dependencies]
|
||||
limbo_completion = { path = "extensions/completion", version = "0.1.0-pre.3" }
|
||||
|
|
20
README.md
20
README.md
|
@ -8,16 +8,16 @@
|
|||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a title="Build Status" target="_blank" href="https://github.com/tursodatabase/limbo/actions/workflows/rust.yml"><img src="https://img.shields.io/github/actions/workflow/status/tursodatabase/limbo/rust.yml?style=flat-square"></a>
|
||||
<a title="Releases" target="_blank" href="https://github.com/tursodatabase/limbo/releases"><img src="https://img.shields.io/github/release/tursodatabase/limbo?style=flat-square&color=9CF"></a>
|
||||
<a title="Build Status" target="_blank" href="https://github.com/tursodatabase/turso/actions/workflows/rust.yml"><img src="https://img.shields.io/github/actions/workflow/status/tursodatabase/turso/rust.yml?style=flat-square"></a>
|
||||
<a title="Releases" target="_blank" href="https://github.com/tursodatabase/turso/releases"><img src="https://img.shields.io/github/release/tursodatabase/turso?style=flat-square&color=9CF"></a>
|
||||
<a title="Rust" target="_blank" href="https://crates.io/crates/limbo"><img alt="PyPI" src="https://img.shields.io/crates/v/limbo"></a>
|
||||
<a title="JavaScript" target="_blank" href="https://www.npmjs.com/package/@tursodatabase/turso"><img alt="PyPI" src="https://img.shields.io/npm/v/@tursodatabase/turso"></a>
|
||||
<a title="Python" target="_blank" href="https://pypi.org/project/pyturso/"><img alt="PyPI" src="https://img.shields.io/pypi/v/pyturso"></a>
|
||||
<a title="MIT" target="_blank" href="https://github.com/tursodatabase/limbo/blob/main/LICENSE.md"><img src="http://img.shields.io/badge/license-MIT-orange.svg?style=flat-square"></a>
|
||||
<a title="MIT" target="_blank" href="https://github.com/tursodatabase/turso/blob/main/LICENSE.md"><img src="http://img.shields.io/badge/license-MIT-orange.svg?style=flat-square"></a>
|
||||
<br>
|
||||
<a title="GitHub Pull Requests" target="_blank" href="https://github.com/tursodatabase/limbo/pulls"><img src="https://img.shields.io/github/issues-pr-closed/tursodatabase/limbo.svg?style=flat-square&color=FF9966"></a>
|
||||
<a title="GitHub Commits" target="_blank" href="https://github.com/tursodatabase/limbo/commits/main"><img src="https://img.shields.io/github/commit-activity/m/tursodatabase/limbo.svg?style=flat-square"></a>
|
||||
<a title="Last Commit" target="_blank" href="https://github.com/tursodatabase/limbo/commits/main"><img src="https://img.shields.io/github/last-commit/tursodatabase/limbo.svg?style=flat-square&color=FF9900"></a>
|
||||
<a title="GitHub Pull Requests" target="_blank" href="https://github.com/tursodatabase/turso/pulls"><img src="https://img.shields.io/github/issues-pr-closed/tursodatabase/turso.svg?style=flat-square&color=FF9966"></a>
|
||||
<a title="GitHub Commits" target="_blank" href="https://github.com/tursodatabase/turso/commits/main"><img src="https://img.shields.io/github/commit-activity/m/tursodatabase/turso.svg?style=flat-square"></a>
|
||||
<a title="Last Commit" target="_blank" href="https://github.com/tursodatabase/turso/commits/main"><img src="https://img.shields.io/github/last-commit/tursodatabase/turso.svg?style=flat-square&color=FF9900"></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a title="Developer's Discord" target="_blank" href="https://discord.gg/jgjmyYgHwB"><img alt="Chat with developers on Discord" src="https://img.shields.io/discord/1258658826257961020?label=Discord&logo=Discord&style=social"></a>
|
||||
|
@ -214,8 +214,8 @@ Unless you explicitly state otherwise, any contribution intentionally submitted
|
|||
for inclusion in Turso Database by you, shall be licensed as MIT, without any additional
|
||||
terms or conditions.
|
||||
|
||||
[contribution guide]: https://github.com/tursodatabase/limbo/blob/main/CONTRIBUTING.md
|
||||
[MIT license]: https://github.com/tursodatabase/limbo/blob/main/LICENSE.md
|
||||
[contribution guide]: https://github.com/tursodatabase/turso/blob/main/CONTRIBUTING.md
|
||||
[MIT license]: https://github.com/tursodatabase/turso/blob/main/LICENSE.md
|
||||
|
||||
## Partners
|
||||
|
||||
|
@ -229,6 +229,6 @@ Thanks to all the partners of Turso!
|
|||
|
||||
Thanks to all the contributors to Turso Database!
|
||||
|
||||
<a href="https://github.com/tursodatabase/limbo/graphs/contributors">
|
||||
<img src="https://contrib.rocks/image?repo=tursodatabase/limbo" />
|
||||
<a href="https://github.com/tursodatabase/turso/graphs/contributors">
|
||||
<img src="https://contrib.rocks/image?repo=tursodatabase/turso" />
|
||||
</a>
|
||||
|
|
|
@ -14,7 +14,7 @@ To build with embedded library support, follow these steps:
|
|||
|
||||
```bash
|
||||
# Clone the repository
|
||||
git clone https://github.com/tursodatabase/limbo
|
||||
git clone https://github.com/tursodatabase/turso
|
||||
|
||||
# Navigate to the Go bindings directory
|
||||
cd limbo/bindings/go
|
||||
|
@ -79,13 +79,13 @@ go test
|
|||
```
|
||||
**Temporarily** you may have to clone the limbo repository and run:
|
||||
|
||||
`go mod edit -replace github.com/tursodatabase/limbo=/path/to/limbo/bindings/go`
|
||||
`go mod edit -replace github.com/tursodatabase/turso=/path/to/limbo/bindings/go`
|
||||
|
||||
```go
|
||||
import (
|
||||
"fmt"
|
||||
"database/sql"
|
||||
_"github.com/tursodatabase/limbo"
|
||||
_"github.com/tursodatabase/turso"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/tursodatabase/limbo
|
||||
module github.com/tursodatabase/turso
|
||||
|
||||
go 1.23.4
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"math"
|
||||
"testing"
|
||||
|
||||
_ "github.com/tursodatabase/limbo"
|
||||
_ "github.com/tursodatabase/turso"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -6,7 +6,7 @@ The Limbo JDBC driver is a library for accessing and creating Limbo database fil
|
|||
|
||||
The project is actively developed. Feel free to open issues and contribute.
|
||||
|
||||
To view related works, visit this [issue](https://github.com/tursodatabase/limbo/issues/615).
|
||||
To view related works, visit this [issue](https://github.com/tursodatabase/turso/issues/615).
|
||||
|
||||
## How to use
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0-pre.3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tursodatabase/limbo"
|
||||
"url": "https://github.com/tursodatabase/turso"
|
||||
},
|
||||
"os": [
|
||||
"darwin"
|
||||
|
@ -16,4 +16,4 @@
|
|||
"engines": {
|
||||
"node": ">= 10"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0-pre.3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tursodatabase/limbo"
|
||||
"url": "https://github.com/tursodatabase/turso"
|
||||
},
|
||||
"os": [
|
||||
"linux"
|
||||
|
@ -22,4 +22,4 @@
|
|||
"libc": [
|
||||
"glibc"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0-pre.3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tursodatabase/limbo"
|
||||
"url": "https://github.com/tursodatabase/turso"
|
||||
},
|
||||
"os": [
|
||||
"win32"
|
||||
|
@ -19,4 +19,4 @@
|
|||
"engines": {
|
||||
"node": ">= 10"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
6
bindings/javascript/package-lock.json
generated
6
bindings/javascript/package-lock.json
generated
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "@tursodatabase/limbo",
|
||||
"name": "@tursodatabase/turso",
|
||||
"version": "0.1.0-pre.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@tursodatabase/limbo",
|
||||
"name": "@tursodatabase/turso",
|
||||
"version": "0.1.0-pre.3",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
|
@ -2508,4 +2508,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0-pre.3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tursodatabase/limbo"
|
||||
"url": "https://github.com/tursodatabase/turso"
|
||||
},
|
||||
"description": "The Turso database library",
|
||||
"main": "index.js",
|
||||
|
@ -40,4 +40,4 @@
|
|||
"version": "napi version"
|
||||
},
|
||||
"packageManager": "yarn@4.6.0"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -40,8 +40,8 @@ dev = [
|
|||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/tursodatabase/limbo"
|
||||
Source = "https://github.com/tursodatabase/limbo"
|
||||
Homepage = "https://github.com/tursodatabase/turso"
|
||||
Source = "https://github.com/tursodatabase/turso"
|
||||
|
||||
[tool.maturin]
|
||||
bindings = 'pyo3'
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tursodatabase/limbo"
|
||||
"url": "https://github.com/tursodatabase/turso"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "./node/dist/index.cjs",
|
||||
|
@ -40,4 +40,4 @@
|
|||
"vitest": "^2.1.8",
|
||||
"wasm-pack": "^0.13.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ fn rusqlite_open() -> rusqlite::Connection {
|
|||
}
|
||||
|
||||
fn bench_prepare_query(criterion: &mut Criterion) {
|
||||
// https://github.com/tursodatabase/limbo/issues/174
|
||||
// https://github.com/tursodatabase/turso/issues/174
|
||||
// The rusqlite benchmark crashes on Mac M1 when using the flamegraph features
|
||||
let enable_rusqlite = std::env::var("DISABLE_RUSQLITE_BENCHMARK").is_err();
|
||||
|
||||
|
@ -59,7 +59,7 @@ fn bench_prepare_query(criterion: &mut Criterion) {
|
|||
}
|
||||
|
||||
fn bench_execute_select_rows(criterion: &mut Criterion) {
|
||||
// https://github.com/tursodatabase/limbo/issues/174
|
||||
// https://github.com/tursodatabase/turso/issues/174
|
||||
// The rusqlite benchmark crashes on Mac M1 when using the flamegraph features
|
||||
let enable_rusqlite = std::env::var("DISABLE_RUSQLITE_BENCHMARK").is_err();
|
||||
|
||||
|
@ -128,7 +128,7 @@ fn bench_execute_select_rows(criterion: &mut Criterion) {
|
|||
}
|
||||
|
||||
fn bench_execute_select_1(criterion: &mut Criterion) {
|
||||
// https://github.com/tursodatabase/limbo/issues/174
|
||||
// https://github.com/tursodatabase/turso/issues/174
|
||||
// The rusqlite benchmark crashes on Mac M1 when using the flamegraph features
|
||||
let enable_rusqlite = std::env::var("DISABLE_RUSQLITE_BENCHMARK").is_err();
|
||||
|
||||
|
@ -181,7 +181,7 @@ fn bench_execute_select_1(criterion: &mut Criterion) {
|
|||
}
|
||||
|
||||
fn bench_execute_select_count(criterion: &mut Criterion) {
|
||||
// https://github.com/tursodatabase/limbo/issues/174
|
||||
// https://github.com/tursodatabase/turso/issues/174
|
||||
// The rusqlite benchmark crashes on Mac M1 when using the flamegraph features
|
||||
let enable_rusqlite = std::env::var("DISABLE_RUSQLITE_BENCHMARK").is_err();
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ fn rusqlite_open_tpc_h() -> rusqlite::Connection {
|
|||
}
|
||||
|
||||
fn bench_tpc_h_queries(criterion: &mut Criterion) {
|
||||
// https://github.com/tursodatabase/limbo/issues/174
|
||||
// https://github.com/tursodatabase/turso/issues/174
|
||||
// The rusqlite benchmark crashes on Mac M1 when using the flamegraph features
|
||||
let enable_rusqlite = std::env::var("DISABLE_RUSQLITE_BENCHMARK").is_err();
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ impl Database {
|
|||
};
|
||||
let db = Arc::new(db);
|
||||
|
||||
// Check: https://github.com/tursodatabase/limbo/pull/1761#discussion_r2154013123
|
||||
// Check: https://github.com/tursodatabase/turso/pull/1761#discussion_r2154013123
|
||||
if is_empty == 2 {
|
||||
// parse schema
|
||||
let conn = db.connect()?;
|
||||
|
|
|
@ -7808,7 +7808,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn test_fuzz_drop_defragment_insert_issue_1085() {
|
||||
// This test is used to demonstrate that issue at https://github.com/tursodatabase/limbo/issues/1085
|
||||
// This test is used to demonstrate that issue at https://github.com/tursodatabase/turso/issues/1085
|
||||
// is FIXED.
|
||||
let db = get_database();
|
||||
let conn = db.connect().unwrap();
|
||||
|
|
|
@ -96,7 +96,7 @@ fn optimize_delete_plan(plan: &mut DeletePlan, _schema: &Schema) -> Result<()> {
|
|||
}
|
||||
|
||||
// FIXME: don't use indexes for delete right now because it's buggy. See for example:
|
||||
// https://github.com/tursodatabase/limbo/issues/1714
|
||||
// https://github.com/tursodatabase/turso/issues/1714
|
||||
// let _ = optimize_table_access(
|
||||
// &mut plan.table_references,
|
||||
// &schema.indexes,
|
||||
|
|
|
@ -719,10 +719,10 @@ pub fn translate_drop_table(
|
|||
});
|
||||
|
||||
// 3. TODO: Open an ephemeral table, and read over triggers from schema table into ephemeral table
|
||||
// Requires support via https://github.com/tursodatabase/limbo/pull/768
|
||||
// Requires support via https://github.com/tursodatabase/turso/pull/768
|
||||
|
||||
// 4. TODO: Open a write cursor to the schema table and re-insert all triggers into the sqlite schema table from the ephemeral table and delete old trigger
|
||||
// Requires support via https://github.com/tursodatabase/limbo/pull/768
|
||||
// Requires support via https://github.com/tursodatabase/turso/pull/768
|
||||
}
|
||||
|
||||
// 3. Destroy the table structure
|
||||
|
|
|
@ -7,16 +7,16 @@ Steps
|
|||
4. Push it as a Merge Request, get it review.
|
||||
|
||||
Sample Pull Requests of function contributing
|
||||
- [partial support for datetime() and julianday()](https://github.com/tursodatabase/limbo/pull/600)
|
||||
- [support for changes() and total_changes()](https://github.com/tursodatabase/limbo/pull/589)
|
||||
- [support for unhex(X)](https://github.com/tursodatabase/limbo/pull/353)
|
||||
- [partial support for datetime() and julianday()](https://github.com/tursodatabase/turso/pull/600)
|
||||
- [support for changes() and total_changes()](https://github.com/tursodatabase/turso/pull/589)
|
||||
- [support for unhex(X)](https://github.com/tursodatabase/turso/pull/353)
|
||||
|
||||
## An example with function `date(..)`
|
||||
|
||||
> Note that the files, code location, steps might be not exactly the same because of refactor but the idea of the changes needed in each layer stays.
|
||||
|
||||
[Issue #158](https://github.com/tursodatabase/limbo/issues/158) was created for it.
|
||||
Refer to commit [4ff7058](https://github.com/tursodatabase/limbo/commit/4ff705868a054643f6113cbe009655c32bc5f235).
|
||||
[Issue #158](https://github.com/tursodatabase/turso/issues/158) was created for it.
|
||||
Refer to commit [4ff7058](https://github.com/tursodatabase/turso/commit/4ff705868a054643f6113cbe009655c32bc5f235).
|
||||
|
||||

|
||||
|
||||
|
@ -131,7 +131,7 @@ How to translate the function into bytecode `Instruction`?
|
|||
for each argument expression.
|
||||
- then we emit the bytecode instruction for Function `program.emit_insn(Insn::Function {...})`
|
||||
|
||||
https://github.com/tursodatabase/limbo/blob/69e3dd28f77e59927da4313e517b2b428ede480d/core/translate/expr.rs#L1235C1-L1256C26
|
||||
https://github.com/tursodatabase/turso/blob/69e3dd28f77e59927da4313e517b2b428ede480d/core/translate/expr.rs#L1235C1-L1256C26
|
||||
|
||||
|
||||
```diff
|
||||
|
@ -173,7 +173,7 @@ pub fn translate_expr(...) -> Result<usize> {
|
|||
|
||||
### Function execution
|
||||
|
||||
The function execution code is implemented in `vdbe/datetime.rs` file [here](https://github.com/tursodatabase/limbo/commit/9cc965186fecf4ba4dd81c783a841c71575123bf#diff-839435241d4ffb648ad2d162bc6ba6a94f052309865251dc2aff36eaa14fa3c5R11-R30) as we already implemented the datetime features in this file.
|
||||
The function execution code is implemented in `vdbe/datetime.rs` file [here](https://github.com/tursodatabase/turso/commit/9cc965186fecf4ba4dd81c783a841c71575123bf#diff-839435241d4ffb648ad2d162bc6ba6a94f052309865251dc2aff36eaa14fa3c5R11-R30) as we already implemented the datetime features in this file.
|
||||
Note that for other functions it might be implemented in other location in vdbe module.
|
||||
|
||||
```diff
|
||||
|
@ -218,7 +218,7 @@ There are 2 kind of tests we need to add
|
|||
2. TCL tests for executing the sql function
|
||||
|
||||
One test for the Rust code is shown as example below
|
||||
https://github.com/tursodatabase/limbo/blob/69e3dd28f77e59927da4313e517b2b428ede480d/core/vdbe/datetime.rs#L620C1-L661C1
|
||||
https://github.com/tursodatabase/turso/blob/69e3dd28f77e59927da4313e517b2b428ede480d/core/vdbe/datetime.rs#L620C1-L661C1
|
||||
|
||||
TCL tests for `date` functions can be referenced from SQLite source code which is already very comprehensive.
|
||||
- https://github.com/sqlite/sqlite/blob/f2b21a5f57e1a1db1a286c42af40563077635c3d/test/date3.test#L36
|
||||
|
|
|
@ -48,7 +48,7 @@ You can install Limbo on your computer as follows:
|
|||
|
||||
```
|
||||
curl --proto '=https' --tlsv1.2 -LsSf \
|
||||
https://github.com/tursodatabase/limbo/releases/latest/download/limbo-installer.sh | sh
|
||||
https://github.com/tursodatabase/turso/releases/latest/download/limbo-installer.sh | sh
|
||||
```
|
||||
|
||||
When you have the software installed, you can start a SQL shell as follows:
|
||||
|
|
|
@ -17,4 +17,4 @@ The script acts as the entrypoint for the Docker container, automatically starti
|
|||
|
||||
## How do I see the open issues created by the simulator?
|
||||
|
||||
[GitHub issues](https://github.com/tursodatabase/limbo/issues?q=is%3Aissue+is%3Aopen+label%3A%22automated%22)
|
||||
[GitHub issues](https://github.com/tursodatabase/turso/issues?q=is%3Aissue+is%3Aopen+label%3A%22automated%22)
|
||||
|
|
|
@ -232,7 +232,7 @@ do_execsql_test select_fuzz_failure_case {
|
|||
SELECT (-9 << ((-6) << (9)) >> ((5)) % -10 - + - (-9));
|
||||
} {-16}
|
||||
|
||||
# regression test for https://github.com/tursodatabase/limbo/issues/1157
|
||||
# regression test for https://github.com/tursodatabase/turso/issues/1157
|
||||
do_execsql_test select-invalid-numeric-text {
|
||||
select -'e';
|
||||
} {0}
|
||||
|
@ -449,4 +449,4 @@ if {[info exists ::env(SQLITE_EXEC)] && ($::env(SQLITE_EXEC) eq "scripts/limbo-s
|
|||
} {a|a
|
||||
b|b
|
||||
z|z}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@ do_execsql_test_on_specific_db {:memory:} update-true-expr {
|
|||
} {10|20|30
|
||||
10|20|30}
|
||||
|
||||
# https://github.com/tursodatabase/limbo/issues/1625
|
||||
# https://github.com/tursodatabase/turso/issues/1625
|
||||
do_execsql_test_on_specific_db {:memory:} update_cache_full_regression_test_#1625 {
|
||||
CREATE TABLE t(x);
|
||||
INSERT INTO t VALUES (randomblob(4096));
|
||||
|
|
|
@ -25,7 +25,7 @@ mod tests {
|
|||
(rng, seed)
|
||||
}
|
||||
|
||||
/// [See this issue for more info](https://github.com/tursodatabase/limbo/issues/1763)
|
||||
/// [See this issue for more info](https://github.com/tursodatabase/turso/issues/1763)
|
||||
#[test]
|
||||
pub fn fuzz_failure_issue_1763() {
|
||||
let db = TempDatabase::new_empty(false);
|
||||
|
|
|
@ -189,7 +189,7 @@ fn test_sequential_write() -> anyhow::Result<()> {
|
|||
|
||||
#[test]
|
||||
/// There was a regression with inserting multiple rows with a column containing an unary operator :)
|
||||
/// https://github.com/tursodatabase/limbo/pull/679
|
||||
/// https://github.com/tursodatabase/turso/pull/679
|
||||
fn test_regression_multi_row_insert() -> anyhow::Result<()> {
|
||||
let _ = env_logger::try_init();
|
||||
let tmp_db = TempDatabase::new_with_rusqlite("CREATE TABLE test (x REAL);", false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue