@dataform/core
Advanced tools
Comparing version 0.0.2-alpha.13 to 0.0.2-alpha.14
@@ -10,2 +10,3 @@ import * as protos from "@dataform/protos"; | ||
export { adapters, utils, parser, Dataform, Materialization, MaterializationContext, MConfig, Operation, Assertion }; | ||
export declare const singleton: Dataform; | ||
export declare const materialize: (name: string, queryOrConfig?: string | MConfig | ((ctx: MaterializationContext) => string)) => Materialization; | ||
@@ -12,0 +13,0 @@ export declare const operate: (name: string, statement?: OContextable<string | string[]>) => Operation; |
@@ -38,8 +38,8 @@ "use strict"; | ||
} | ||
const singleton = new dataform_1.Dataform(); | ||
exports.materialize = (name, queryOrConfig) => singleton.materialize(name, queryOrConfig); | ||
exports.operate = (name, statement) => singleton.operate(name, statement); | ||
exports.assert = (name, query) => singleton.assert(name, query); | ||
exports.compile = () => singleton.compile(); | ||
exports.init = (projectConfig) => singleton.init(projectConfig); | ||
exports.singleton = new dataform_1.Dataform(); | ||
exports.materialize = (name, queryOrConfig) => exports.singleton.materialize(name, queryOrConfig); | ||
exports.operate = (name, statement) => exports.singleton.operate(name, statement); | ||
exports.assert = (name, query) => exports.singleton.assert(name, query); | ||
exports.compile = () => exports.singleton.compile(); | ||
exports.init = (projectConfig) => exports.singleton.init(projectConfig); | ||
global.materialize = exports.materialize; | ||
@@ -46,0 +46,0 @@ global.operate = exports.operate; |
@@ -50,3 +50,3 @@ import * as protos from "@dataform/protos"; | ||
const singleton = new Dataform(); | ||
export const singleton = new Dataform(); | ||
@@ -53,0 +53,0 @@ export const materialize = (name: string, queryOrConfig?: MContextable<string> | MConfig) => |
{ | ||
"name": "@dataform/core", | ||
"version": "0.0.2-alpha.13", | ||
"version": "0.0.2-alpha.14", | ||
"description": "Dataform core API.", | ||
@@ -8,3 +8,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@dataform/protos": "^0.0.2-alpha.13", | ||
"@dataform/protos": "^0.0.2-alpha.14", | ||
"protobufjs": "^6.8.8" | ||
@@ -15,3 +15,3 @@ }, | ||
}, | ||
"gitHead": "d87b1af8dd7dd43b9440fa008a04ac0a2b188d10" | ||
"gitHead": "63274bb366d7156b50affe57fb1e3d8c7fa268ac" | ||
} |
Sorry, the diff of this file is not supported yet
403289
7676