-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4dfb36
commit eb11fef
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
# deno_sqlite | ||
|
||
Deno FFI bindings to SQLite3 C API. | ||
Fast, native bindings to SQLite3 C API, using Deno FFI. | ||
|
||
```ts | ||
import { Database } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
const db = new Database("test.db"); | ||
|
||
const [version] = db.queryArray("select sqlite_version()")[0]; | ||
console.log(version); | ||
|
||
db.close(); | ||
``` | ||
|
||
## Documentation | ||
|
||
Check out the documentation | ||
[here](https://doc.deno.land/https://deno.land/x/[email protected]/mod.ts). | ||
|
||
## Native Library | ||
|
||
By default, this module will look for existing SQLite3 dynamic library on your | ||
path, which is `sqlite3.dll` on Windows, `libsqlite3.so` on Linux, and | ||
`libsqlite3.dylib` on macOS. If the library you want to use is not on path, then | ||
you can use the `DENO_SQLITE_PATH` environment variable. You will have to | ||
install SQLite3 separately if it's not already installed, since it is not | ||
bundled with this module. | ||
|
||
## Related | ||
|
||
- [x/sqlite](https://deno.land/x/sqlite), WASM based | ||
- [deno_sqlite3](https://github.com/littledivy/deno_sqlite3), rustqlite bindings | ||
- [deno_sqlite3](https://github.com/littledivy/deno_sqlite3), `rustqlite` | ||
bindings | ||
|
||
## License | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters