orchid-orm 1.9.24 → 1.9.26

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/index.js CHANGED
@@ -8,7 +8,8 @@ const createBaseTable = ({
8
8
  columnTypes,
9
9
  snakeCase,
10
10
  filePath,
11
- nowSQL
11
+ nowSQL,
12
+ exportAs
12
13
  } = { columnTypes: pqb.columnTypes }) => {
13
14
  const ct = typeof columnTypes === "function" ? columnTypes(pqb.columnTypes) : columnTypes || pqb.columnTypes;
14
15
  filePath != null ? filePath : filePath = orchidCore.getCallerFilePath();
@@ -21,10 +22,11 @@ const createBaseTable = ({
21
22
  ct,
22
23
  filePath,
23
24
  snakeCase,
24
- nowSQL
25
+ nowSQL,
26
+ exportAs
25
27
  );
26
28
  };
27
- const create = (columnTypes, filePath, snakeCase, nowSQL) => {
29
+ const create = (columnTypes, filePath, snakeCase, nowSQL, exportAs = "BaseTable") => {
28
30
  var _a;
29
31
  const base = (_a = class {
30
32
  constructor() {
@@ -91,7 +93,7 @@ const create = (columnTypes, filePath, snakeCase, nowSQL) => {
91
93
  options
92
94
  };
93
95
  }
94
- }, _a.filePath = filePath, _a.nowSQL = nowSQL, _a);
96
+ }, _a.filePath = filePath, _a.nowSQL = nowSQL, _a.exportAs = exportAs, _a);
95
97
  base.prototype.columnTypes = columnTypes;
96
98
  return base;
97
99
  };