@koishijs/plugin-database-postgres 1.0.0 → 1.0.1

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/lib/index.js CHANGED
@@ -22,7 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  // koishi/plugins/database/postgres/src/locales/zh-CN.yml
23
23
  var require_zh_CN = __commonJS({
24
24
  "koishi/plugins/database/postgres/src/locales/zh-CN.yml"(exports, module2) {
25
- module2.exports = { protocol: "要使用的协议名。", host: "要连接到的主机名。", port: "要连接到的端口号。", username: "要使用的用户名。", password: "要使用的密码。", database: "要访问的数据库名。", writeConcern: { $description: "Write Concern", w: { $description: "The write concern.", $value: ["Default", "Custom", "Majority"] }, wtimeoutMS: "The write concern timeout.", journal: "The journal write concern." } };
25
+ module2.exports = { host: "要连接到的主机名。", port: "要连接到的端口号。", username: "要使用的用户名。", password: "要使用的密码。", database: "要访问的数据库名。" };
26
26
  }
27
27
  });
28
28
 
@@ -36,7 +36,7 @@ var import_koishi = require("koishi");
36
36
  var import_driver_postgres = require("@minatojs/driver-postgres");
37
37
  var src_default = (0, import_koishi.defineDriver)(import_driver_postgres.PostgresDriver, import_koishi.Schema.object({
38
38
  host: import_koishi.Schema.string().default("localhost"),
39
- port: import_koishi.Schema.natural().max(65535).default(3306),
39
+ port: import_koishi.Schema.natural().max(65535).default(5432),
40
40
  user: import_koishi.Schema.string().default("root"),
41
41
  password: import_koishi.Schema.string().role("secret"),
42
42
  database: import_koishi.Schema.string().default("koishi")
package/lib/index.js.map CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/locales/zh-CN.yml", "../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,oEAAAA,SAAA;AAAA,IAAAA,QAAA,YAAC,UAAW,YAAW,MAAO,aAAY,MAAO,aAAY,UAAW,YAAW,UAAW,WAAU,U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6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@koishijs/plugin-database-postgres",
3
3
  "description": "PostgreSQL support for Koishi",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -43,12 +43,12 @@
43
43
  }
44
44
  },
45
45
  "peerDependencies": {
46
- "koishi": "^4.15.5"
46
+ "koishi": "^4.15.6"
47
47
  },
48
48
  "devDependencies": {
49
- "koishi": "^4.15.5"
49
+ "koishi": "^4.15.6"
50
50
  },
51
51
  "dependencies": {
52
- "@minatojs/driver-postgres": "^1.0.0"
52
+ "@minatojs/driver-postgres": "^1.0.1"
53
53
  }
54
54
  }
@@ -1,16 +1,5 @@
1
- protocol: 要使用的协议名。
2
1
  host: 要连接到的主机名。
3
2
  port: 要连接到的端口号。
4
3
  username: 要使用的用户名。
5
4
  password: 要使用的密码。
6
5
  database: 要访问的数据库名。
7
- writeConcern:
8
- $description: Write Concern
9
- w:
10
- $description: The write concern.
11
- $value:
12
- - Default
13
- - Custom
14
- - Majority
15
- wtimeoutMS: The write concern timeout.
16
- journal: The journal write concern.
@@ -1,6 +0,0 @@
1
- protocol: 要使用的协议名。
2
- host: 要连接到的主机名。
3
- port: 要连接到的端口号。
4
- username: 要使用的用户名。
5
- password: 要使用的密码。
6
- database: 要访问的数据库名。
@@ -1,16 +0,0 @@
1
- protocol: The protocol to use.
2
- host: The host to connect to.
3
- port: The port number to be connected.
4
- username: The username used for authentication.
5
- password: The password used for authentication.
6
- database: The name of the database we want to use.
7
- writeConcern:
8
- $description: Write Concern
9
- w:
10
- $description: The write concern.
11
- $value:
12
- - Default
13
- - Custom
14
- - Majority
15
- wtimeoutMS: The write concern timeout.
16
- journal: The journal write concern.
@@ -1,6 +0,0 @@
1
- protocol: 要使用的协议名。
2
- host: 要连接到的主机名。
3
- port: 要连接到的端口号。
4
- username: 要使用的用户名。
5
- password: 要使用的密码。
6
- database: 要访问的数据库名。
@@ -1,6 +0,0 @@
1
- protocol: 要使用的协议名。
2
- host: 要连接到的主机名。
3
- port: 要连接到的端口号。
4
- username: 要使用的用户名。
5
- password: 要使用的密码。
6
- database: 要访问的数据库名。
@@ -1,6 +0,0 @@
1
- protocol: 要使用的协议名。
2
- host: 要连接到的主机名。
3
- port: 要连接到的端口号。
4
- username: 要使用的用户名。
5
- password: 要使用的密码。
6
- database: 要访问的数据库名。
@@ -1,6 +0,0 @@
1
- protocol: 要使用的協議名。
2
- host: 要連接到的主機名。
3
- port: 要連接到的端口號。
4
- username: 要使用的使用者名。
5
- password: 要使用的密碼。
6
- database: 要訪問的數據庫名。