示例#1
0
文件: archive.py 项目: yilab/dbt
    def compile(self):
        compiler = Compiler(self.project, self.args)
        compiler.initialize()
        compiled = compiler.compile()

        count_compiled_archives = compiled['archives']
        logger.info("Compiled {} archives".format(count_compiled_archives))
示例#2
0
    def run(self):
        compiler = Compiler(self.project, self.args)
        compiler.initialize()
        results = compiler.compile()

        stat_line = ", ".join(
            ["{} {}".format(results[k], k) for k in CompilableEntities])
        logger.info("Compiled {}".format(stat_line))
示例#3
0
文件: test.py 项目: menetrier/dbt
    def compile(self):
        compiler = Compiler(self.project, BaseCreateTemplate)
        compiler.initialize()

        created_models, created_tests, created_analyses = compiler.compile()
        print("Compiled {} models, {} tests, and {} analyses".format(
            created_models, created_tests, created_analyses))

        return compiler
示例#4
0
    def compile(self):
        compiler = Compiler(self.project, BaseCreateTemplate, self.args)
        compiler.initialize()
        results = compiler.compile(limit_to=['tests'])

        stat_line = ", ".join(
            ["{} {}".format(results[k], k) for k in CompilableEntities])
        logger.info("Compiled {}".format(stat_line))

        return compiler
示例#5
0
文件: run.py 项目: menetrier/dbt
    def compile(self):
        create_template = DryCreateTemplate if self.args.dry else BaseCreateTemplate
        compiler = Compiler(self.project, create_template)
        compiler.initialize()
        created_models, created_tests, created_analyses = compiler.compile(
            self.args.dry)
        print("Compiled {} models, {} tests, and {} analyses".format(
            created_models, created_tests, created_analyses))

        return create_template.label
示例#6
0
    def compile(self):
        compiler = Compiler(self.project, BaseCreateTemplate)
        compiler.initialize()
        results = compiler.compile()

        stat_line = ", ".join(
            ["{} {}".format(results[k], k) for k in CompilableEntities])
        print("Compiled {}".format(stat_line))

        return compiler
示例#7
0
文件: run.py 项目: BrianLondon/dbt
    def compile(self):
        create_template = DryCreateTemplate if self.args.dry else BaseCreateTemplate
        compiler = Compiler(self.project, create_template)
        compiler.initialize()
        results = compiler.compile(self.args.dry)

        stat_line = ", ".join(
            ["{} {}".format(results[k], k) for k in CompilableEntities])
        print("Compiled {}".format(stat_line))

        return create_template.label
示例#8
0
    def compile(self):
        create_template = DryCreateTemplate if self.args.dry \
                          else BaseCreateTemplate
        compiler = Compiler(self.project, create_template, self.args)
        compiler.initialize()
        results = compiler.compile(limit_to=['models'])

        stat_line = ", ".join(
            ["{} {}".format(results[k], k) for k in CompilableEntities])
        logger.info("Compiled {}".format(stat_line))

        return create_template.label
示例#9
0
文件: compile.py 项目: menetrier/dbt
    def run(self):
        if self.args.dry:
            create_template = DryCreateTemplate
        else:
            create_template = BaseCreateTemplate

        compiler = Compiler(self.project, create_template)
        compiler.initialize()
        created_models, created_tests, created_analyses = compiler.compile(
            dry=self.args.dry)

        print("Compiled {} models, {} tests and {} analyses".format(
            created_models, created_tests, created_analyses))
示例#10
0
    def run(self):
        if self.args.dry:
            create_template = DryCreateTemplate
        else:
            create_template = BaseCreateTemplate

        compiler = Compiler(self.project, create_template, self.args)
        compiler.initialize()
        results = compiler.compile(limit_to=CompilableEntities)

        stat_line = ", ".join(
            ["{} {}".format(results[k], k) for k in CompilableEntities])
        logger.info("Compiled {}".format(stat_line))
示例#11
0
文件: test.py 项目: cmcarthur/dbt
    def compile(self):
        compiler = Compiler(self.project, TestCreateTemplate)
        compiler.initialize()
        compiler.compile()

        return compiler
示例#12
0
 def compile(self):
     compiler = Compiler(self.project, self.create_template, self.args)
     compiler.initialize()
     compiled = compiler.compile_archives()
     logger.info("Compiled {} archives".format(len(compiled)))
示例#13
0
文件: compile.py 项目: cmcarthur/dbt
    def run(self):
        compiler = Compiler(self.project, BaseCreateTemplate)
        compiler.initialize()
        created_models, created_analyses = compiler.compile()

        print("Compiled {} models and {} analyses".format(created_models, created_analyses))
示例#14
0
 def compile(self):
     compiler = Compiler(self.project, self.create_template)
     compiler.initialize()
     compiled = compiler.compile_archives()
     print("Compiled {} archives".format(len(compiled)))