You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/splitgraph/cloud/project/snapshots/test_generation/test_generate_project_with_dbt/generate_project_dbt/README.md
+112Lines changed: 112 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,118 @@ repository and create the following secrets:
39
39
"SQL credentials"). You can get them at https://www.splitgraph.com/settings/sql-credentials (or
40
40
your deployment URL if you're on a private deployment).
41
41
42
+
### Edit `splitgraph.yml`
43
+
44
+
We generated a [`splitgraph.yml`](./splitgraph.yml) file from your chosen plugins'
45
+
parameters JSONSchema. You should review it and add suitable plugin settings:
46
+
47
+
- set `tables` to `tables: {}` to let the plugin automatically infer the schema and the
48
+
options of the data source (by default, it adds a sample table into the project file)
49
+
- change and customize the `metadata` block
50
+
- set up the plugin parameters in `external.params`. Where the comment says `CHOOSE ONE`
51
+
and offers a list of alternative subobjects, choose one entry from the list and delete
52
+
the list itself, leaving the object at the top level.
53
+
54
+
Example:
55
+
56
+
```yaml
57
+
- namespace: my_namespace
58
+
repository: csv
59
+
# Catalog-specific metadata for the repository. Optional.
60
+
metadata:
61
+
readme:
62
+
text: Readme
63
+
description: Description of the repository
64
+
topics:
65
+
- sample_topic
66
+
# Data source settings for the repository. Optional.
67
+
external:
68
+
# Name of the credential that the plugin uses. This can also be a credential_id if the
69
+
# credential is already registered on Splitgraph.
70
+
credential: csv
71
+
plugin: csv
72
+
# Plugin-specific parameters matching the plugin's parameters schema
73
+
params:
74
+
connection: # Choose one of:
75
+
- connection_type: http # REQUIRED. Constant
76
+
url: ''# REQUIRED. HTTP URL to the CSV file
77
+
- connection_type: s3# REQUIRED. Constant
78
+
s3_endpoint: ''# REQUIRED. S3 endpoint (including port if required)
79
+
s3_bucket: ''# REQUIRED. Bucket the object is in
80
+
s3_region: ''# Region of the S3 bucket
81
+
s3_secure: false # Whether to use HTTPS for S3 access
82
+
s3_object: ''# Limit the import to a single object
83
+
s3_object_prefix: ''# Prefix for object in S3 bucket
84
+
autodetect_header: true # Detect whether the CSV file has a header automatically
0 commit comments