@sqb/sqljs 4.19.6 → 4.20.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.
@@ -11,14 +11,12 @@ const sql_js_1 = tslib_1.__importDefault(require("sql.js"));
11
11
  const sqljs_connection_js_1 = require("./sqljs-connection.js");
12
12
  const dbCache = new Map();
13
13
  class SqljsAdapter {
14
- constructor() {
15
- this.driver = 'sqljs';
16
- this.dialect = 'sqlite';
17
- this.features = {
18
- cursor: true,
19
- // fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ]
20
- };
21
- }
14
+ driver = 'sqljs';
15
+ dialect = 'sqlite';
16
+ features = {
17
+ cursor: true,
18
+ // fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ]
19
+ };
22
20
  async connect(config) {
23
21
  if (!config.database)
24
22
  throw new Error('You must provide sqlite database file for sql.js driver');
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SqljsConnection = void 0;
4
4
  const sqljs_cursor_js_1 = require("./sqljs-cursor.js");
5
5
  class SqljsConnection {
6
+ _onClose;
7
+ intlcon;
6
8
  constructor(db, _onClose) {
7
9
  this._onClose = _onClose;
8
10
  this.intlcon = db;
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SqljsCursor = void 0;
4
4
  class SqljsCursor {
5
+ _stmt;
6
+ _rowType;
5
7
  constructor(stmt, opts) {
6
8
  this._rowType = opts.rowType;
7
9
  this._stmt = stmt;
@@ -6,14 +6,12 @@ import initSqlJs from 'sql.js';
6
6
  import { SqljsConnection } from './sqljs-connection.js';
7
7
  const dbCache = new Map();
8
8
  export class SqljsAdapter {
9
- constructor() {
10
- this.driver = 'sqljs';
11
- this.dialect = 'sqlite';
12
- this.features = {
13
- cursor: true,
14
- // fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ]
15
- };
16
- }
9
+ driver = 'sqljs';
10
+ dialect = 'sqlite';
11
+ features = {
12
+ cursor: true,
13
+ // fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ]
14
+ };
17
15
  async connect(config) {
18
16
  if (!config.database)
19
17
  throw new Error('You must provide sqlite database file for sql.js driver');
@@ -1,5 +1,7 @@
1
1
  import { SqljsCursor } from './sqljs-cursor.js';
2
2
  export class SqljsConnection {
3
+ _onClose;
4
+ intlcon;
3
5
  constructor(db, _onClose) {
4
6
  this._onClose = _onClose;
5
7
  this.intlcon = db;
@@ -1,4 +1,6 @@
1
1
  export class SqljsCursor {
2
+ _stmt;
3
+ _rowType;
2
4
  constructor(stmt, opts) {
3
5
  this._rowType = opts.rowType;
4
6
  this._stmt = stmt;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/sqljs",
3
3
  "description": "SQB serialization extension for sql.js driver",
4
- "version": "4.19.6",
4
+ "version": "4.20.1",
5
5
  "author": "Panates",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
@@ -9,10 +9,10 @@
9
9
  "tslib": "^2.8.1"
10
10
  },
11
11
  "peerDependencies": {
12
- "@sqb/builder": "^4.19.6",
13
- "@sqb/connect": "^4.19.6",
14
- "@sqb/sqlite-dialect": "^4.19.6",
15
- "sql.js": "^1.8.0"
12
+ "@sqb/builder": "^4.20.1",
13
+ "@sqb/connect": "^4.20.1",
14
+ "@sqb/sqlite-dialect": "^4.20.1",
15
+ "sql.js": "^1.13.0"
16
16
  },
17
17
  "type": "module",
18
18
  "exports": {
@@ -38,12 +38,11 @@
38
38
  ],
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "https://github.com/sqbjs/sqb.git",
41
+ "url": "https://github.com/panates/sqb.git",
42
42
  "directory": "packages/sqljs"
43
43
  },
44
44
  "engines": {
45
- "node": ">=16.0",
46
- "npm": ">=7.0.0"
45
+ "node": ">=18.0"
47
46
  },
48
47
  "files": [
49
48
  "bin/",