orchid-orm 1.9.25 → 1.9.27

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