MCPcopy Create free account
hub / github.com/dataform-co/dataform / coreExecutionRequestFromPath

Function coreExecutionRequestFromPath

testing/run_core.ts:53–67  ·  view source on GitHub ↗
(
  projectDir: string,
  projectConfigOverride?: dataform.ProjectConfig
)

Source from the content-addressed store, hash-verified

51const SOURCE_EXTENSIONS = ["js", "sql", "sqlx", "yaml", "ipynb","md"];
52
53export function coreExecutionRequestFromPath(
54 projectDir: string,
55 projectConfigOverride?: dataform.ProjectConfig
56): dataform.CoreExecutionRequest {
57 const resolvedProjectDir = fs.realpathSync(path.resolve(projectDir));
58 return dataform.CoreExecutionRequest.create({
59 compile: {
60 compileConfig: {
61 projectDir: resolvedProjectDir,
62 filePaths: walkDirectoryForFilenames(resolvedProjectDir),
63 projectConfigOverride
64 }
65 }
66 });
67}
68
69// A VM is needed when running main because Node functions like `require` are overridden.
70export function runMainInVm(

Callers 12

main_test.tsFile · 0.90
test_test.tsFile · 0.90
table_test.tsFile · 0.90
assertion_test.tsFile · 0.90
index_test.tsFile · 0.90
operation_test.tsFile · 0.90
notebook_test.tsFile · 0.90
view_test.tsFile · 0.90

Calls 3

createMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected