mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 13:09:21 +01:00
doc: remove non-working example
PR-URL: https://github.com/nodejs/node/pull/55856 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Raz Luvaton <rluvaton@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
parent
a6d853c63b
commit
669b6927e4
@ -22,16 +22,7 @@ import sqlite from 'node:sqlite';
|
||||
const sqlite = require('node:sqlite');
|
||||
```
|
||||
|
||||
This module is only available under the `node:` scheme. The following will not
|
||||
work:
|
||||
|
||||
```mjs
|
||||
import sqlite from 'sqlite';
|
||||
```
|
||||
|
||||
```cjs
|
||||
const sqlite = require('sqlite');
|
||||
```
|
||||
This module is only available under the `node:` scheme.
|
||||
|
||||
The following example shows the basic usage of the `node:sqlite` module to open
|
||||
an in-memory database, write data to the database, and then read the data back.
|
||||
|
@ -27,16 +27,7 @@ import test from 'node:test';
|
||||
const test = require('node:test');
|
||||
```
|
||||
|
||||
This module is only available under the `node:` scheme. The following will not
|
||||
work:
|
||||
|
||||
```mjs
|
||||
import test from 'test';
|
||||
```
|
||||
|
||||
```cjs
|
||||
const test = require('test');
|
||||
```
|
||||
This module is only available under the `node:` scheme.
|
||||
|
||||
Tests created via the `test` module consist of a single function that is
|
||||
processed in one of three ways:
|
||||
|
Loading…
Reference in New Issue
Block a user