@theholocron/neon-client 1.6.0 → 1.6.2
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 +7 -12
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -23,28 +23,23 @@ const { branches } = await neon.branches.list("my-project-id");
|
|
|
23
23
|
|
|
24
24
|
// Create a branch with a read/write endpoint
|
|
25
25
|
const { branch } = await neon.branches.create("my-project-id", {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
name: "feat/my-feature",
|
|
27
|
+
parent_id: "br_main",
|
|
28
|
+
endpoints: [{ type: "read_write" }],
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
// Get a connection URI
|
|
32
32
|
const { uri } = await neon.connection.uri("my-project-id", {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
branch_id: branch.id,
|
|
34
|
+
database_name: "neondb",
|
|
35
|
+
role_name: "neondb_owner",
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// List databases on a branch
|
|
39
39
|
const { databases } = await neon.databases.list("my-project-id", branch.id);
|
|
40
40
|
|
|
41
41
|
// Run SQL against a branch database
|
|
42
|
-
await neon.databases.runSql(
|
|
43
|
-
"my-project-id",
|
|
44
|
-
branch.id,
|
|
45
|
-
"neondb",
|
|
46
|
-
'CREATE EXTENSION IF NOT EXISTS "pgvector"',
|
|
47
|
-
);
|
|
42
|
+
await neon.databases.runSql("my-project-id", branch.id, "neondb", 'CREATE EXTENSION IF NOT EXISTS "pgvector"');
|
|
48
43
|
|
|
49
44
|
// Restore a branch to another branch's state
|
|
50
45
|
await neon.branches.restore("my-project-id", branch.id, "br_main");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/neon-client",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "A TypeScript client for the Neon API",
|
|
5
5
|
"homepage": "https://github.com/theholocron/clients/tree/main/packages/neon-client#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/clients/issues",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@theholocron/http-client": "^1.6.
|
|
33
|
+
"@theholocron/http-client": "^1.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.2",
|
|
37
|
-
"@theholocron/eslint-config": "^7.
|
|
38
|
-
"@theholocron/tsconfig": "^7.
|
|
39
|
-
"@theholocron/tsdown-config": "^7.
|
|
40
|
-
"@theholocron/vitest-config": "^7.
|
|
37
|
+
"@theholocron/eslint-config": "^7.8.1",
|
|
38
|
+
"@theholocron/tsconfig": "^7.8.1",
|
|
39
|
+
"@theholocron/tsdown-config": "^7.7.0",
|
|
40
|
+
"@theholocron/vitest-config": "^7.7.0",
|
|
41
41
|
"@vitest/coverage-v8": "^4.1.10",
|
|
42
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
42
|
+
"@vitest/eslint-plugin": "^1.6.25",
|
|
43
43
|
"eslint": "^10.8.0",
|
|
44
44
|
"eslint-plugin-n": "^18.2.2",
|
|
45
45
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|