@sqb/postgres 4.0.13 → 4.1.0
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/dist/PgAdapter.d.ts +1 -1
- package/dist/PgAdapter.js +1 -1
- package/dist/PgConnection.d.ts +1 -1
- package/dist/PgConnection.js +1 -1
- package/dist/datatype-map.d.ts +1 -1
- package/dist/datatype-map.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/PgAdapter.d.ts
CHANGED
package/dist/PgAdapter.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PgAdapter = void 0;
|
|
4
|
-
const connect_1 = require("@sqb/connect");
|
|
5
4
|
require("@sqb/postgres-dialect");
|
|
6
5
|
const postgresql_client_1 = require("postgresql-client");
|
|
6
|
+
const connect_1 = require("@sqb/connect");
|
|
7
7
|
const PgConnection_1 = require("./PgConnection");
|
|
8
8
|
class PgAdapter {
|
|
9
9
|
constructor() {
|
package/dist/PgConnection.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Adapter, QueryRequest } from '@sqb/connect';
|
|
2
1
|
import { Connection, FieldInfo } from 'postgresql-client';
|
|
2
|
+
import { Adapter, QueryRequest } from '@sqb/connect';
|
|
3
3
|
export declare class PgConnection implements Adapter.Connection {
|
|
4
4
|
private intlcon?;
|
|
5
5
|
constructor(conn: Connection);
|
package/dist/PgConnection.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PgConnection = void 0;
|
|
4
|
-
const connect_1 = require("@sqb/connect");
|
|
5
4
|
const postgresql_client_1 = require("postgresql-client");
|
|
5
|
+
const connect_1 = require("@sqb/connect");
|
|
6
6
|
const datatype_map_1 = require("./datatype-map");
|
|
7
7
|
const SqbDataTypToOIDMap = {
|
|
8
8
|
[connect_1.DataType.BOOL]: postgresql_client_1.DataTypeOIDs.bool,
|
package/dist/datatype-map.d.ts
CHANGED
package/dist/datatype-map.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.dataTypeToOID = void 0;
|
|
4
|
-
const builder_1 = require("@sqb/builder");
|
|
5
4
|
const postgresql_client_1 = require("postgresql-client");
|
|
5
|
+
const builder_1 = require("@sqb/builder");
|
|
6
6
|
function dataTypeToOID(dataType, isArray) {
|
|
7
7
|
if (dataType === builder_1.DataType.DATE)
|
|
8
8
|
return isArray ? postgresql_client_1.DataTypeOIDs._date : postgresql_client_1.DataTypeOIDs.date;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("@sqb/postgres-dialect");
|
|
3
4
|
const connect_1 = require("@sqb/connect");
|
|
4
5
|
const PgAdapter_1 = require("./PgAdapter");
|
|
5
|
-
require("@sqb/postgres-dialect");
|
|
6
6
|
(0, connect_1.registerAdapter)(new PgAdapter_1.PgAdapter());
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/postgres",
|
|
3
3
|
"description": "SQB serialization extension for PostgreSQL database",
|
|
4
|
-
"version": "4.0
|
|
4
|
+
"version": "4.1.0",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Eray Hanoglu <e.hanoglu@panates.com>"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"main": "dist/index.js",
|
|
39
39
|
"types": "dist/index.d.ts",
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": ">=
|
|
41
|
+
"node": ">= 16.0"
|
|
42
42
|
},
|
|
43
43
|
"directories": {
|
|
44
44
|
"lib": "dist",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dist/"
|
|
51
51
|
],
|
|
52
52
|
"scripts": {
|
|
53
|
-
"build": "tsc -b tsconfig
|
|
53
|
+
"build": "tsc -b tsconfig-build.json",
|
|
54
54
|
"prebuild": "npm run lint && npm run clean:dist",
|
|
55
55
|
"postbuild": "copyfiles package.json README.md LICENSE ../../build/postgres",
|
|
56
56
|
"clean": "ts-cleanup -s src --all & ts-cleanup -s test",
|