Skip to content

Commit 9a62592

Browse files
committed
Update README
1 parent ce36a9b commit 9a62592

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,14 @@ Returns a promise to a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/B
371371
const blob = await FileAttachment("binary-data.dat").blob();
372372
```
373373

374+
<a href="#attachment_sqlite" name="attachment_sqlite">#</a> *attachment*.<b>sqlite</b>() [<>](https://github.com/observablehq/stdlib/blob/master/src/fileAttachment.js "Source")
375+
376+
Returns a promise to the file loads as a [SQLite database client](https://observablehq.com/@observablehq/databases).
377+
378+
```js
379+
const db = await FileAttachment("chinook.db").sqlite();
380+
```
381+
374382
<a href="#FileAttachments" name="FileAttachments">#</a> <b>FileAttachments</b>(<i>resolve</i>) [<>](https://github.com/observablehq/stdlib/blob/master/src/fileAttachment.js "Source")
375383

376384
*Note: this function is not part of the Observable standard library (in notebooks), but is provided by this module as a means for defining custom file attachment implementations when working directly with the Observable runtime.*

0 commit comments

Comments
 (0)