@514labs/moose-lib 0.6.435 → 0.6.437
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/browserCompatible.d.mts +1 -1
- package/dist/browserCompatible.d.ts +1 -1
- package/dist/browserCompatible.js +21 -6
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +21 -6
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +1 -1
- package/dist/dmv2/index.d.ts +1 -1
- package/dist/dmv2/index.js +21 -6
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +21 -6
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-DaI1orpy.d.mts → index-D22Yb8pY.d.mts} +15 -1
- package/dist/{index-DaI1orpy.d.ts → index-D22Yb8pY.d.ts} +15 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -6
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +21 -6
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +21 -6
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/dmv2/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, C as ClickHouseEngines, aV as ConsumerConfig, j as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, k as IngestPipeline, aZ as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, a_ as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, l as SqlResource, c as Stream, d as StreamConfig, T as Task, aY as TaskConfig, aX as TaskContext, aW as TransformConfig, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, W as Workflow, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows } from '../index-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, C as ClickHouseEngines, aV as ConsumerConfig, j as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, k as IngestPipeline, aZ as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, a_ as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, l as SqlResource, c as Stream, d as StreamConfig, T as Task, aY as TaskConfig, aX as TaskContext, aW as TransformConfig, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, W as Workflow, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows } from '../index-D22Yb8pY.mjs';
|
|
2
2
|
import 'typia';
|
|
3
3
|
import 'typia/lib/tags';
|
|
4
4
|
import 'node:stream';
|
package/dist/dmv2/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, C as ClickHouseEngines, aV as ConsumerConfig, j as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, k as IngestPipeline, aZ as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, a_ as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, l as SqlResource, c as Stream, d as StreamConfig, T as Task, aY as TaskConfig, aX as TaskContext, aW as TransformConfig, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, W as Workflow, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows } from '../index-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, C as ClickHouseEngines, aV as ConsumerConfig, j as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, k as IngestPipeline, aZ as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, a_ as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, l as SqlResource, c as Stream, d as StreamConfig, T as Task, aY as TaskConfig, aX as TaskContext, aW as TransformConfig, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, W as Workflow, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows } from '../index-D22Yb8pY.js';
|
|
2
2
|
import 'typia';
|
|
3
3
|
import 'typia/lib/tags';
|
|
4
4
|
import 'node:stream';
|
package/dist/dmv2/index.js
CHANGED
|
@@ -681,11 +681,18 @@ function sqlImpl(strings, ...values) {
|
|
|
681
681
|
return new Sql(strings, values);
|
|
682
682
|
}
|
|
683
683
|
var sql = sqlImpl;
|
|
684
|
+
sql.statement = function(strings, ...values) {
|
|
685
|
+
return new Sql(strings, values, false);
|
|
686
|
+
};
|
|
687
|
+
sql.fragment = function(strings, ...values) {
|
|
688
|
+
return new Sql(strings, values, true);
|
|
689
|
+
};
|
|
684
690
|
var instanceofSql = (value) => typeof value === "object" && "values" in value && "strings" in value;
|
|
685
691
|
var Sql = class _Sql {
|
|
686
692
|
values;
|
|
687
693
|
strings;
|
|
688
|
-
|
|
694
|
+
isFragment;
|
|
695
|
+
constructor(rawStrings, rawValues, isFragment) {
|
|
689
696
|
if (rawStrings.length - 1 !== rawValues.length) {
|
|
690
697
|
if (rawStrings.length === 0) {
|
|
691
698
|
throw new TypeError("Expected at least 1 string");
|
|
@@ -700,6 +707,7 @@ var Sql = class _Sql {
|
|
|
700
707
|
);
|
|
701
708
|
this.values = new Array(valuesLength);
|
|
702
709
|
this.strings = new Array(valuesLength + 1);
|
|
710
|
+
this.isFragment = isFragment;
|
|
703
711
|
this.strings[0] = rawStrings[0];
|
|
704
712
|
let i = 0, pos = 0;
|
|
705
713
|
while (i < rawValues.length) {
|
|
@@ -746,19 +754,26 @@ var Sql = class _Sql {
|
|
|
746
754
|
* Append another Sql fragment, returning a new Sql instance.
|
|
747
755
|
*/
|
|
748
756
|
append(other) {
|
|
749
|
-
return new _Sql(
|
|
757
|
+
return new _Sql(
|
|
758
|
+
[...this.strings, ""],
|
|
759
|
+
[...this.values, other],
|
|
760
|
+
this.isFragment
|
|
761
|
+
);
|
|
750
762
|
}
|
|
751
763
|
};
|
|
752
764
|
sql.join = function(fragments, separator) {
|
|
753
|
-
if (fragments.length === 0) return new Sql([""], []);
|
|
754
|
-
if (fragments.length === 1)
|
|
765
|
+
if (fragments.length === 0) return new Sql([""], [], true);
|
|
766
|
+
if (fragments.length === 1) {
|
|
767
|
+
const frag = fragments[0];
|
|
768
|
+
return new Sql(frag.strings, frag.values, true);
|
|
769
|
+
}
|
|
755
770
|
const sep = separator ?? ", ";
|
|
756
771
|
const normalized = sep.includes(" ") ? sep : ` ${sep} `;
|
|
757
772
|
const strings = ["", ...Array(fragments.length - 1).fill(normalized), ""];
|
|
758
|
-
return new Sql(strings, fragments);
|
|
773
|
+
return new Sql(strings, fragments, true);
|
|
759
774
|
};
|
|
760
775
|
sql.raw = function(text) {
|
|
761
|
-
return new Sql([text], []);
|
|
776
|
+
return new Sql([text], [], true);
|
|
762
777
|
};
|
|
763
778
|
var toStaticQuery = (sql3) => {
|
|
764
779
|
const [query, params] = toQuery(sql3);
|