@atscript/db-postgres 0.1.39 → 0.1.41

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://atscript.moost.org/logo.svg" alt="Atscript" width="120" />
2
+ <img src="https://db.atscript.dev/logo.svg" alt="Atscript" width="120" />
3
3
  </p>
4
4
 
5
5
  <h1 align="center">@atscript/db-postgres</h1>
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
 
11
11
  <p align="center">
12
- <a href="https://atscript.moost.org">Documentation</a> · <a href="https://atscript.moost.org/db/adapters/postgresql">PostgreSQL Adapter</a>
12
+ <a href="https://db.atscript.dev">Documentation</a> · <a href="https://db.atscript.dev/adapters/postgresql">PostgreSQL Adapter</a>
13
13
  </p>
14
14
 
15
15
  ---
@@ -27,13 +27,13 @@ pnpm add @atscript/db-postgres pg
27
27
  ## Quick Start
28
28
 
29
29
  ```typescript
30
- import { DbSpace } from '@atscript/db'
31
- import { createAdapter } from '@atscript/db-postgres'
30
+ import { DbSpace } from "@atscript/db";
31
+ import { createAdapter } from "@atscript/db-postgres";
32
32
 
33
- const db = createAdapter('postgresql://user@localhost:5432/mydb')
34
- const users = db.getTable(UsersType)
33
+ const db = createAdapter("postgresql://user@localhost:5432/mydb");
34
+ const users = db.getTable(UsersType);
35
35
 
36
- await users.insertOne({ name: 'Alice', email: 'alice@example.com' })
36
+ await users.insertOne({ name: "Alice", email: "alice@example.com" });
37
37
  ```
38
38
 
39
39
  ## Features
@@ -51,8 +51,8 @@ await users.insertOne({ name: 'Alice', email: 'alice@example.com' })
51
51
 
52
52
  ## Documentation
53
53
 
54
- - [PostgreSQL Adapter Guide](https://atscript.moost.org/db/adapters/postgresql)
55
- - [Full Documentation](https://atscript.moost.org)
54
+ - [PostgreSQL Adapter Guide](https://db.atscript.dev/adapters/postgresql)
55
+ - [Full Documentation](https://db.atscript.dev)
56
56
 
57
57
  ## License
58
58
 
@@ -0,0 +1,6 @@
1
+ import { TAtscriptPlugin } from "@atscript/core";
2
+
3
+ //#region src/plugin/index.d.ts
4
+ declare const PostgresPlugin: () => TAtscriptPlugin;
5
+ //#endregion
6
+ export { PostgresPlugin as t };
@@ -0,0 +1,6 @@
1
+ import { TAtscriptPlugin } from "@atscript/core";
2
+
3
+ //#region src/plugin/index.d.ts
4
+ declare const PostgresPlugin: () => TAtscriptPlugin;
5
+ //#endregion
6
+ export { PostgresPlugin as t };