diff --git a/README.md b/README.md index d7619dab9..cc72d1133 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ In the future, we will be also working on:
You can install the latest `limbo` release with: -```shell +```shell curl --proto '=https' --tlsv1.2 -LsSf \ https://github.com/tursodatabase/limbo/releases/latest/download/limbo_cli-installer.sh | sh ``` @@ -72,6 +72,24 @@ cargo run ``` +
+🦀 Rust +
+ +```console +cargo add limbo +``` + +Example usage: + +```rust +let db = Builder::new_local("sqlite.db").build().await?; +let conn = db.connect()?; + +let res = conn.query("SELECT * FROM users", ()).await?; +``` +
+
✨ JavaScript
@@ -144,7 +162,7 @@ defer stmt.Close() rows, _ = stmt.Query() for rows.Next() { - var id int + var id int var username string _ := rows.Scan(&id, &username) fmt.Printf("User: ID: %d, Username: %s\n", id, username) @@ -153,7 +171,7 @@ for rows.Next() {
- + ☕️ Java