sasat 0.21.5 → 0.21.6
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/cli/cli.cjs +1 -3
- package/dist/cli/cli.mjs +1 -3
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/cli/cli.cjs
CHANGED
|
@@ -164,8 +164,6 @@ class BaseColumn {
|
|
|
164
164
|
return !this.data.notNull;
|
|
165
165
|
}
|
|
166
166
|
isNullableOnCreate() {
|
|
167
|
-
if (this.data.hasReference)
|
|
168
|
-
return false;
|
|
169
167
|
return !this.data.notNull || this.data.default !== void 0 || this.data.autoIncrement;
|
|
170
168
|
}
|
|
171
169
|
isReference() {
|
|
@@ -4759,7 +4757,7 @@ class ReferenceNode {
|
|
|
4759
4757
|
ref.parentTable,
|
|
4760
4758
|
makeJoinCondition(ref.parentColumn, column.columnName()),
|
|
4761
4759
|
false,
|
|
4762
|
-
|
|
4760
|
+
column.isNullable(),
|
|
4763
4761
|
column.isPrimary(),
|
|
4764
4762
|
column.table.gqlOption.enabled && parentTable.gqlOption.enabled
|
|
4765
4763
|
);
|
package/dist/cli/cli.mjs
CHANGED
|
@@ -139,8 +139,6 @@ class BaseColumn {
|
|
|
139
139
|
return !this.data.notNull;
|
|
140
140
|
}
|
|
141
141
|
isNullableOnCreate() {
|
|
142
|
-
if (this.data.hasReference)
|
|
143
|
-
return false;
|
|
144
142
|
return !this.data.notNull || this.data.default !== void 0 || this.data.autoIncrement;
|
|
145
143
|
}
|
|
146
144
|
isReference() {
|
|
@@ -4734,7 +4732,7 @@ class ReferenceNode {
|
|
|
4734
4732
|
ref.parentTable,
|
|
4735
4733
|
makeJoinCondition(ref.parentColumn, column.columnName()),
|
|
4736
4734
|
false,
|
|
4737
|
-
|
|
4735
|
+
column.isNullable(),
|
|
4738
4736
|
column.isPrimary(),
|
|
4739
4737
|
column.table.gqlOption.enabled && parentTable.gqlOption.enabled
|
|
4740
4738
|
);
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const queryToSql_js = require('runtime/dsl/query/sql/queryToSql.js');
|
|
3
4
|
const error = require('./shared/sasat.f544328b.cjs');
|
|
4
5
|
const SqlString = require('sqlstring');
|
|
5
6
|
require('mysql2');
|
|
@@ -1041,6 +1042,7 @@ const pagingOption = (option) => {
|
|
|
1041
1042
|
return { numberOfItem: option.numberOfItem, offset: option.offset, sort };
|
|
1042
1043
|
};
|
|
1043
1044
|
|
|
1045
|
+
exports.queryToSql = queryToSql_js.queryToSql;
|
|
1044
1046
|
exports.Conditions = error.Conditions;
|
|
1045
1047
|
exports.SqlString = error.SqlString;
|
|
1046
1048
|
exports.getDbClient = error.getDbClient;
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { queryToSql } from 'runtime/dsl/query/sql/queryToSql.js';
|
|
1
2
|
import { S as SqlString$1, n as nonNullable, u as unique, g as getDbClient, a as SasatError } from './shared/sasat.01289068.mjs';
|
|
2
3
|
export { C as Conditions, p as pick } from './shared/sasat.01289068.mjs';
|
|
3
4
|
import * as SqlString from 'sqlstring';
|