[{"data":1,"prerenderedAt":650},["ShallowReactive",2],{"navigation_docs_en":3,"-en-using-running":241,"-en-using-running-surround":646},[4,17,42,206,232],{"title":5,"redirect":6,"path":7,"stem":8,"children":9,"page":16},"Introduction","\u002Fen\u002Fintroduction\u002Fintroduction","\u002Fen\u002Fintroduction","en\u002F1.introduction",[10,12],{"title":5,"path":6,"stem":11},"en\u002F1.introduction\u002F1.introduction",{"title":13,"path":14,"stem":15},"Prerequisites","\u002Fen\u002Fintroduction\u002Fprerequisites","en\u002F1.introduction\u002F2.prerequisites",false,{"title":18,"redirect":19,"path":20,"stem":21,"children":22,"page":16},"Installation","\u002Fen\u002Finstallation\u002Fsetup","\u002Fen\u002Finstallation","en\u002F2.installation",[23,26,30,34,38],{"title":24,"path":19,"stem":25},"Machine set-up","en\u002F2.installation\u002F1.setup",{"title":27,"path":28,"stem":29},"A Tale of Two Repos","\u002Fen\u002Finstallation\u002Ftale-repos","en\u002F2.installation\u002F2.tale-repos",{"title":31,"path":32,"stem":33},"Database connection","\u002Fen\u002Finstallation\u002Fdbt-profile","en\u002F2.installation\u002F3.dbt-profile",{"title":35,"path":36,"stem":37},"Smoke-testing","\u002Fen\u002Finstallation\u002Fsmoke-testing","en\u002F2.installation\u002F4.smoke-testing",{"title":39,"path":40,"stem":41},"What now ?","\u002Fen\u002Finstallation\u002Fwhat-now","en\u002F2.installation\u002F5.what-now",{"title":43,"path":44,"stem":45,"children":46,"page":16},"Users Guide","\u002Fen\u002Fusing","en\u002F3.using",[47,50,54,88,188,202],{"title":5,"path":48,"stem":49},"\u002Fen\u002Fusing\u002Fintroduction","en\u002F3.using\u002F1.introduction",{"title":51,"path":52,"stem":53},"Running the ETL","\u002Fen\u002Fusing\u002Frunning","en\u002F3.using\u002F2.running",{"title":55,"path":56,"stem":57,"children":58,"page":16},"Configuration","\u002Fen\u002Fusing\u002Fconfiguration","en\u002F3.using\u002F3.configuration",[59,72,76,80,84],{"title":60,"path":61,"stem":62,"children":63,"page":16},"Architecture","\u002Fen\u002Fusing\u002Fconfiguration\u002Farchitecture","en\u002F3.using\u002F3.configuration\u002F1.architecture",[64,68],{"title":65,"path":66,"stem":67},"Overview","\u002Fen\u002Fusing\u002Fconfiguration\u002Farchitecture\u002Foverview","en\u002F3.using\u002F3.configuration\u002F1.architecture\u002F1.overview",{"title":69,"path":70,"stem":71},"Marts and reporting layer","\u002Fen\u002Fusing\u002Fconfiguration\u002Farchitecture\u002Fmarts-reporting","en\u002F3.using\u002F3.configuration\u002F1.architecture\u002F2.marts-reporting",{"title":73,"path":74,"stem":75},"Linking the databases","\u002Fen\u002Fusing\u002Fconfiguration\u002Fdatabases","en\u002F3.using\u002F3.configuration\u002F2.databases",{"title":77,"path":78,"stem":79},"Adapters and seeds","\u002Fen\u002Fusing\u002Fconfiguration\u002Fadapts-seeds","en\u002F3.using\u002F3.configuration\u002F3.adapts-seeds",{"title":81,"path":82,"stem":83},"Enabling a resource","\u002Fen\u002Fusing\u002Fconfiguration\u002Fenabling","en\u002F3.using\u002F3.configuration\u002F4.enabling",{"title":85,"path":86,"stem":87},"Overriding","\u002Fen\u002Fusing\u002Fconfiguration\u002Foverriding","en\u002F3.using\u002F3.configuration\u002F5.overriding",{"title":89,"redirect":90,"path":91,"stem":92,"children":93,"page":16},"Dashboards","\u002Fen\u002Fusing\u002F","\u002Fen\u002Fusing\u002Fdashboards","en\u002F3.using\u002F4.dashboards",[94,97,126,167,176,184],{"title":5,"path":95,"stem":96},"\u002Fen\u002Fusing\u002Fdashboards\u002Fintroduction","en\u002F3.using\u002F4.dashboards\u002F1.introduction",{"title":98,"redirect":99,"path":99,"stem":100,"children":101,"page":16},"Human resources","\u002Fen\u002Fusing\u002Fdashboards\u002Fhr","en\u002F3.using\u002F4.dashboards\u002F2. hr",[102,106,110,114,118,122],{"title":103,"path":104,"stem":105},"Employees leaves","\u002Fen\u002Fusing\u002Fdashboards\u002Fhr\u002Femp_conge","en\u002F3.using\u002F4.dashboards\u002F2. hr\u002F1.emp_conge",{"title":107,"path":108,"stem":109},"Active employees","\u002Fen\u002Fusing\u002Fdashboards\u002Fhr\u002Fempl_actif","en\u002F3.using\u002F4.dashboards\u002F2. hr\u002F2.empl_actif",{"title":111,"path":112,"stem":113},"Retirement","\u002Fen\u002Fusing\u002Fdashboards\u002Fhr\u002Fretirement","en\u002F3.using\u002F4.dashboards\u002F2. hr\u002F3.retirement",{"title":115,"path":116,"stem":117},"Efficacité","\u002Fen\u002Fusing\u002Fdashboards\u002Fhr\u002Fefficacite","en\u002F3.using\u002F4.dashboards\u002F2. hr\u002F4.efficacite",{"title":119,"path":120,"stem":121},"Absences des employé(e)s","\u002Fen\u002Fusing\u002Fdashboards\u002Fhr\u002Femp_abs","en\u002F3.using\u002F4.dashboards\u002F2. hr\u002F5.emp_abs",{"title":123,"path":124,"stem":125},"Resignation","\u002Fen\u002Fusing\u002Fdashboards\u002Fhr\u002Fresignation","en\u002F3.using\u002F4.dashboards\u002F2. hr\u002F6.resignation",{"title":127,"redirect":128,"path":128,"stem":129,"children":130,"page":16},"Educational service","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv",[131,135,139,143,147,151,155,159,163],{"title":132,"path":133,"stem":134},"Res epreuves","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fres_epreuves","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F1.res_epreuves",{"title":136,"path":137,"stem":138},"Students results monitoring","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fsuivi_resultats","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F2.suivi_resultats",{"title":140,"path":141,"stem":142},"Students headcount","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Feffectif_css","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F3.effectif_css",{"title":144,"path":145,"stem":146},"Students absenteeism","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fchronic_absenteeism","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F4.chronic_absenteeism",{"title":148,"path":149,"stem":150},"Academic results","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fres_scolaires","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F5.res_scolaires",{"title":152,"path":153,"stem":154},"Predictive modelling - aggregated","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fpredictive-aggregated","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F6.predictive-aggregated",{"title":156,"path":157,"stem":158},"PEVR","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fpevr","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F7.pevr",{"title":160,"path":161,"stem":162},"Absenteeism","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fabsenteeism","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F8.absenteeism",{"title":164,"path":165,"stem":166},"Diplôme","\u002Fen\u002Fusing\u002Fdashboards\u002Feduc-serv\u002Fdiplome","en\u002F3.using\u002F4.dashboards\u002F3.educ-serv\u002F9.diplome",{"title":168,"redirect":169,"path":169,"stem":170,"children":171,"page":16},"School organisation","\u002Fen\u002Fusing\u002Fdashboards\u002Fschool-org","en\u002F3.using\u002F4.dashboards\u002F4.school-org",[172],{"title":173,"path":174,"stem":175},"Anomalies","\u002Fen\u002Fusing\u002Fdashboards\u002Fschool-org\u002Fanomalies","en\u002F3.using\u002F4.dashboards\u002F4.school-org\u002F1.anomalies",{"title":177,"path":178,"stem":179,"children":180,"page":16},"DirectionGenerale","\u002Fen\u002Fusing\u002Fdashboards\u002Fdirection_generale","en\u002F3.using\u002F4.dashboards\u002F5.direction_generale",[181],{"title":156,"path":182,"stem":183},"\u002Fen\u002Fusing\u002Fdashboards\u002Fdirection_generale\u002Fpevr","en\u002F3.using\u002F4.dashboards\u002F5.direction_generale\u002F1.pevr",{"title":185,"path":186,"stem":187},"Row Level Security","\u002Fen\u002Fusing\u002Fdashboards\u002Frls","en\u002F3.using\u002F4.dashboards\u002F5.rls",{"title":189,"redirect":90,"path":190,"stem":191,"children":192,"page":16},"Data marts","\u002Fen\u002Fusing\u002Fmarts","en\u002F3.using\u002F6.marts",[193,196,199],{"title":5,"path":194,"stem":195},"\u002Fen\u002Fusing\u002Fmarts\u002Fmarts","en\u002F3.using\u002F6.marts\u002F1.marts",{"title":127,"path":197,"stem":198},"\u002Fen\u002Fusing\u002Fmarts\u002Feducational-service","en\u002F3.using\u002F6.marts\u002F2.educational-service",{"title":98,"path":200,"stem":201},"\u002Fen\u002Fusing\u002Fmarts\u002Fhuman-resources","en\u002F3.using\u002F6.marts\u002F3.human-resources",{"title":203,"path":204,"stem":205},"Production checklist","\u002Fen\u002Fusing\u002Fproduction","en\u002F3.using\u002F7.production",{"title":207,"redirect":208,"path":209,"stem":210,"children":211,"page":16},"Developers Guide","\u002Fen\u002Fcontributing\u002Fgetting-started","\u002Fen\u002Fcontributing","en\u002F4.contributing",[212,215,223],{"title":213,"path":208,"stem":214},"Getting Started","en\u002F4.contributing\u002F1.getting-started",{"title":216,"redirect":217,"path":218,"stem":219,"children":220,"page":16},"Conventions","\u002Fen\u002Fcontributing\u002Fconventions\u002Fgetting-started","\u002Fen\u002Fcontributing\u002Fconventions","en\u002F4.contributing\u002F2.conventions",[221],{"title":213,"path":217,"stem":222},"en\u002F4.contributing\u002F2.conventions\u002F1.getting-started",{"title":224,"path":225,"stem":226,"children":227,"page":16},"Docs Ref","\u002Fen\u002Fcontributing\u002Fdocs","en\u002F4.contributing\u002F99.docs",[228],{"title":229,"path":230,"stem":231},"Components","\u002Fen\u002Fcontributing\u002Fdocs\u002Fcomponents","en\u002F4.contributing\u002F99.docs\u002F1.components",{"title":233,"redirect":6,"path":234,"stem":235,"children":236,"page":16},"Migrations","\u002Fen\u002Fmigrations","en\u002F5.migrations",[237],{"title":238,"path":239,"stem":240},"V0.17 -> V0.18","\u002Fen\u002Fmigrations\u002Fv0.17_to_v0.18","en\u002F5.migrations\u002F1.v0.17_to_v0.18",{"id":242,"title":51,"body":243,"description":639,"extension":640,"links":641,"meta":642,"navigation":643,"path":52,"seo":644,"stem":53,"__hash__":645},"docs_en\u002Fen\u002F3.using\u002F2.running.md",{"type":244,"value":245,"toc":634},"minimark",[246,250,259,264,289,304,307,329,332,368,373,378,385,404,408,419,439,443,449,480,484,490,529,536,547,558,564,596,599,630],[247,248,5],"h1",{"id":249},"introduction",[251,252,253,254,258],"p",{},"dbt has a built-in orchestrator that allows you to run the ETL. Only enabled models, using the ",[255,256,257],"code",{},"+enabled: true"," syntax, will be run. As all models are disabled by default, only the models or dashboards you manually enable will be run.",[260,261,263],"h2",{"id":262},"how-to-run-the-store","How to run the store",[265,266,268,269,272,273,277,278,280,281,284,285,288],"alert",{"type":267},"warning","All dbt commands should be called from the ",[255,270,271],{},"cssXX.dashboards_store"," project.\n",[274,275,276],"strong",{},"BEFORE"," calling a dbt command from ",[255,279,271],{},", make sure you have activated the Poetry environment by running ",[255,282,283],{},"eval $(poetry env activate) && poetry install"," from ",[255,286,287],{},"core.dashboards_store",".",[265,290,292,293,296,297,288],{"type":291},"info","To get a complete list of the available options, run ",[255,294,295],{},"dbt --help"," or go to the official ",[298,299,303],"a",{"href":300,"rel":301},"https:\u002F\u002Fdocs.getdbt.com\u002Freference\u002Fcommands\u002Frun",[302],"nofollow","dbt documentation",[251,305,306],{},"The base command to run and test the store is the following:",[308,309,314],"pre",{"className":310,"code":311,"language":312,"meta":313,"style":313},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","dbt build\n","bash","",[255,315,316],{"__ignoreMap":313},[317,318,321,325],"span",{"class":319,"line":320},"line",1,[317,322,324],{"class":323},"sBMFI","dbt",[317,326,328],{"class":327},"sfazB"," build\n",[251,330,331],{},"The base command is a faster alternative to manually running the following commands:",[308,333,335],{"className":310,"code":334,"language":312,"meta":313,"style":313},"dbt compile\ndbt seed\ndbt run\ndbt test\n",[255,336,337,344,352,360],{"__ignoreMap":313},[317,338,339,341],{"class":319,"line":320},[317,340,324],{"class":323},[317,342,343],{"class":327}," compile\n",[317,345,347,349],{"class":319,"line":346},2,[317,348,324],{"class":323},[317,350,351],{"class":327}," seed\n",[317,353,355,357],{"class":319,"line":354},3,[317,356,324],{"class":323},[317,358,359],{"class":327}," run\n",[317,361,363,365],{"class":319,"line":362},4,[317,364,324],{"class":323},[317,366,367],{"class":327}," test\n",[369,370,372],"h3",{"id":371},"i-have-special-needs","I have special needs",[374,375,377],"h4",{"id":376},"i-need-to-reload-the-seeds-definitions","I need to reload the seeds' definitions",[251,379,380,381,384],{},"Add the ",[255,382,383],{},"--full-refresh"," option.",[308,386,388],{"className":310,"code":387,"language":312,"meta":313,"style":313},"dbt build --full-refresh  # Build can be replaced by run.\n",[255,389,390],{"__ignoreMap":313},[317,391,392,394,397,400],{"class":319,"line":320},[317,393,324],{"class":323},[317,395,396],{"class":327}," build",[317,398,399],{"class":327}," --full-refresh",[317,401,403],{"class":402},"sHwdD","  # Build can be replaced by run.\n",[374,405,407],{"id":406},"i-want-to-materialize-the-transformations-in-an-environment-other-than-the-default-one","I want to materialize the transformations in an environment other than the default one",[251,409,410,411,414,415,418],{},"If you want to target an environment other than the default target defined in ",[255,412,413],{},"~\u002F.dbt\u002Fprofiles.yml",", use the ",[255,416,417],{},"--target"," option. You will need this to materialize the store in production.",[308,420,422],{"className":310,"code":421,"language":312,"meta":313,"style":313},"dbt build --target prod  # Build can be replaced by every other dbt command such as seed or test.\n",[255,423,424],{"__ignoreMap":313},[317,425,426,428,430,433,436],{"class":319,"line":320},[317,427,324],{"class":323},[317,429,396],{"class":327},[317,431,432],{"class":327}," --target",[317,434,435],{"class":327}," prod",[317,437,438],{"class":402},"  # Build can be replaced by every other dbt command such as seed or test.\n",[374,440,442],{"id":441},"i-want-to-run-only-a-specific-sql-file","I want to run only a specific SQL file",[251,444,445,446,384],{},"If you want to only run a specific SQL file, use the ",[255,447,448],{},"--select",[308,450,452],{"className":310,"code":451,"language":312,"meta":313,"style":313},"dbt build --select \u003Csql_file_name>  # The name of the model is the name of the file WITHOUT the `.sql` extension.\n",[255,453,454],{"__ignoreMap":313},[317,455,456,458,460,463,467,470,474,477],{"class":319,"line":320},[317,457,324],{"class":323},[317,459,396],{"class":327},[317,461,462],{"class":327}," --select",[317,464,466],{"class":465},"sMK4o"," \u003C",[317,468,469],{"class":327},"sql_file_nam",[317,471,473],{"class":472},"sTEyZ","e",[317,475,476],{"class":465},">",[317,478,479],{"class":402},"  # The name of the model is the name of the file WITHOUT the `.sql` extension.\n",[374,481,483],{"id":482},"i-want-to-run-only-a-specific-dashboard","I want to run only a specific dashboard",[251,485,486,487,384],{},"If you want to run only the models from a specific mart or dashboard, use the ",[255,488,489],{},"--select +tag:\u003Cmodel>",[308,491,493],{"className":310,"code":492,"language":312,"meta":313,"style":313},"dbt build --select tag:\u003Cname of the dashboard> # Where the dashboard name is the same as the one from dbt_project.yml.\n",[255,494,495],{"__ignoreMap":313},[317,496,497,499,501,503,506,509,512,515,518,521,524,526],{"class":319,"line":320},[317,498,324],{"class":323},[317,500,396],{"class":327},[317,502,462],{"class":327},[317,504,505],{"class":327}," tag:",[317,507,508],{"class":465},"\u003C",[317,510,511],{"class":327},"name",[317,513,514],{"class":327}," of",[317,516,517],{"class":327}," the",[317,519,520],{"class":327}," dashboar",[317,522,523],{"class":472},"d",[317,525,476],{"class":465},[317,527,528],{"class":402}," # Where the dashboard name is the same as the one from dbt_project.yml.\n",[265,530,531,532,535],{"type":291},"Please consult ",[255,533,534],{},"core.dashboards_store\u002Fdbt_project.yml"," to find the tag of the model you want to run.",[374,537,539,540,543,544,546],{"id":538},"about-the-selector-and-the-select-statement","About the ",[255,541,542],{},"+"," selector and the ",[255,545,448],{}," statement",[265,548,549,550,554,555,557],{"type":291},"You ",[551,552,553],"em",{},"probably"," need the + selector to run the models when using the ",[255,556,448],{}," statement.",[251,559,560,561,563],{},"If you want to run both a model and its upstream dependencies, use the ",[255,562,542],{}," selector. This is usually required because models depend on seeds and sources.",[308,565,567],{"className":310,"code":566,"language":312,"meta":313,"style":313},"dbt build --select +tag:\u003Cname of the dashboard> # Where the dashboard name is the same as the one from dbt_project.yml.\n",[255,568,569],{"__ignoreMap":313},[317,570,571,573,575,577,580,582,584,586,588,590,592,594],{"class":319,"line":320},[317,572,324],{"class":323},[317,574,396],{"class":327},[317,576,462],{"class":327},[317,578,579],{"class":327}," +tag:",[317,581,508],{"class":465},[317,583,511],{"class":327},[317,585,514],{"class":327},[317,587,517],{"class":327},[317,589,520],{"class":327},[317,591,523],{"class":472},[317,593,476],{"class":465},[317,595,528],{"class":402},[251,597,598],{},"or",[308,600,602],{"className":310,"code":601,"language":312,"meta":313,"style":313},"dbt build --select +\u003Cmodel name> # Where the model name is the same as the SQL file name without the extension.\n",[255,603,604],{"__ignoreMap":313},[317,605,606,608,610,612,615,617,620,623,625,627],{"class":319,"line":320},[317,607,324],{"class":323},[317,609,396],{"class":327},[317,611,462],{"class":327},[317,613,614],{"class":327}," +",[317,616,508],{"class":465},[317,618,619],{"class":327},"model",[317,621,622],{"class":327}," nam",[317,624,473],{"class":472},[317,626,476],{"class":465},[317,628,629],{"class":402}," # Where the model name is the same as the SQL file name without the extension.\n",[631,632,633],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":313,"searchDepth":346,"depth":346,"links":635},[636],{"id":262,"depth":346,"text":263,"children":637},[638],{"id":371,"depth":354,"text":372},"dbt has a built-in orchestrator that allows you to run the ETL. Only enabled models, using the +enabled: true syntax, will be run. As all models are disabled by default, only the models or dashboards you manually enable will be run.","md",null,{},true,{"title":51,"description":639},"nni6Xt2sqPacRSdzIh6UM0cXKpnhsLVJInungO6IGUk",[647,649],{"title":5,"path":48,"stem":49,"description":648,"children":-1},"This section will help you tuning the store to your own needs.",{"title":65,"path":66,"stem":67,"description":313,"children":-1},1781106580199]