@yydb/yydb-linux-x64 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -18
- package/lib/yydb-linux-x64-gnu.node +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
# `@yydb/yydb-linux-x64`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prebuilt native binding for Linux x64 with glibc (`linux/x64`). **Not a public import target.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
[`@yydb/yydb`](https://www.npmjs.com/package/@yydb/yydb) on `linux/x64`. Most applications should install the parent
|
|
7
|
-
package rather than depend on this platform package directly.
|
|
5
|
+
Pulled automatically when installing [`@yydb/yydb`](https://www.npmjs.com/package/@yydb/yydb) on matching hosts.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
## Example
|
|
8
|
+
|
|
9
|
+
Application code imports the main package only:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import {Database} from "@yydb/yydb";
|
|
13
|
+
|
|
14
|
+
const db = await Database.open("app.yydb");
|
|
15
|
+
console.log(await db.info());
|
|
16
|
+
await db.close();
|
|
11
17
|
```
|
|
12
18
|
|
|
13
|
-
The
|
|
19
|
+
The CLI also ships from `@yydb/yydb`:
|
|
14
20
|
|
|
15
21
|
```text
|
|
16
|
-
npx yydb --help
|
|
17
22
|
npx yydb serve app.yydb --bind 127.0.0.1:7700
|
|
18
23
|
```
|
|
19
24
|
|
|
20
|
-
|
|
21
|
-
|-------------|------------------------------------|
|
|
22
|
-
| npm package | `@yydb/yydb-linux-x64` |
|
|
23
|
-
| Platform | Linux x64 with glibc (`linux/x64`) |
|
|
24
|
-
| Binding | `lib/yydb-linux-x64-gnu.node` |
|
|
25
|
-
|
|
26
|
-
Install via `@yydb/yydb` optionalDependencies or add `@yydb/yydb-linux-x64` directly.
|
|
27
|
-
|
|
28
|
-
[YYDB overview](https://github.com/yy-database/yydb.rs) ·
|
|
29
|
-
[License](https://github.com/yy-database/yydb.rs/blob/dev/License.md)
|
|
25
|
+
[YYDB overview](https://github.com/yy-database/yydb.rs)
|
|
Binary file
|