Skip to content

Commit

Permalink
Fix SQLite documentation example. (#1750)
Browse files Browse the repository at this point in the history
* Fix SQLite documentation example.

* avoid duplicate imports

* revert yarn.lock change

---------

Co-authored-by: Mike Bostock <[email protected]>
  • Loading branch information
angrytongan and mbostock authored Oct 14, 2024
1 parent 05707b3 commit 21ac188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/lib/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

[SQLite](https://sqlite.org/) is “a small, fast, self-contained, high-reliability, full-featured, SQL database engine” and “the most used database engine in the world.” Observable provides a ESM-compatible distribution of [sql.js](https://sql.js.org), a WASM-based distribution of SQLite. It is available by default as `SQLite` in Markdown, but you can import it like so:

```js echo
```js run=false
import SQLite from "npm:@observablehq/sqlite";
```

We also provide `SQLiteDatabaseClient`, a [`DatabaseClient`](https://observablehq.com/@observablehq/database-client-specification) implementation.

```js echo
```js run=false
import {SQLiteDatabaseClient} from "npm:@observablehq/sqlite";
```

Expand Down

0 comments on commit 21ac188

Please sign in to comment.