Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public declare(dataset: FullyQualifiedName): Declaration {
const declaration = new Declaration();
declaration.session = this;
this.setNameAndTarget(declaration.proto, dataset.name, dataset.schema);
declaration.proto.fileName = utils.getCallerFile(this.rootDir);
this.actions.push(declaration);
return declaration;
}
public declare(dataset: dataform.ITarget): Declaration {
const declaration = new Declaration();
declaration.session = this;
utils.setNameAndTarget(this, declaration.proto, dataset.name, dataset.schema, dataset.database);
declaration.proto.fileName = utils.getCallerFile(this.rootDir);
this.actions.push(declaration);
return declaration;
}