Skip to content

Commit a4041d2

Browse files
committed
Adapter-specific profile template
1 parent 4af6f2f commit a4041d2

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
default:
2+
outputs:
3+
4+
dev:
5+
type: sqlite
6+
7+
# sqlite locks the whole db on writes so anything > 1 won't help
8+
threads: 1
9+
10+
database: [database name]
11+
12+
# value of 'schema' must be defined in `schemas_and_paths` below. in most cases,
13+
# this should be 'main'
14+
schema: 'main'
15+
16+
# connect schemas to paths: at least one of these must be 'main'
17+
# semi-colon separated list of file paths
18+
# format: 'schema_1=/my_project/data/file_1.db;schema_2=/my_project/data/file_2.db'
19+
schemas_and_paths: 'main=/my_project/data/etl.db'
20+
21+
# directory where all *.db files are attached as schemata, using base filename
22+
# as schema name, and where new schemata are created. this can overlap with the dirs of
23+
# files in `schemas_and_paths` as long as there's no conflicts.
24+
schema_directory: '/my_project/data'
25+
26+
# optional: semi-colon separated list of file paths for SQLite extensions to load.
27+
# digest.so is needed to provide for snapshots to work; see README
28+
extensions: '/path/to/sqlite-digest/digest.so'
29+
30+
prod:
31+
type: sqlite
32+
33+
# sqlite locks the whole db on writes so anything > 1 won't help
34+
threads: 1
35+
36+
database: [database name]
37+
38+
# value of 'schema' must be defined in `schemas_and_paths` below. in most cases,
39+
# this should be 'main'
40+
schema: 'main'
41+
42+
# connect schemas to paths: at least one of these must be 'main'
43+
# semi-colon separated list of file paths
44+
# format: 'schema_1=/my_project/data/file_1.db;schema_2=/my_project/data/file_2.db'
45+
schemas_and_paths: 'main=/my_project/data/etl.db'
46+
47+
# directory where all *.db files are attached as schemata, using base filename
48+
# as schema name, and where new schemata are created. this can overlap with the dirs of
49+
# files in `schemas_and_paths` as long as there's no conflicts.
50+
schema_directory: '/my_project/data'
51+
52+
# optional: semi-colon separated list of file paths for SQLite extensions to load.
53+
# digest.so is needed to provide for snapshots to work; see README
54+
extensions: '/path/to/sqlite-digest/digest.so'
55+
56+
target: dev

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'macros/**/*.sql',
2525
'macros/**/**/*.sql',
2626
'dbt_project.yml',
27+
'sample_profiles.yml',
2728
]
2829
},
2930
install_requires=[

0 commit comments

Comments
 (0)