package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Oct 31, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
snowflake
Usage
source:
type: snowflake
config:
connection_url: user:password@my_organization-my_account/mydb
exclude:
databases:
- database_a
- database_b
tables:
- database_c.table_a
Key |
Value |
Example |
Description |
|
connection_url |
string |
user:password@org22-acc123/mydb |
URL to access the snowflake server |
required |
exclude.databases |
[]string |
[ database_a, database_b] |
List of databases to be excluded |
optional |
exclude.tables |
[]string |
[ database_c.table_a, database_c.table_b] |
List of tables to be excluded |
optional |
Outputs
Field |
Sample Value |
resource.urn |
my_database.my_table |
resource.name |
my_table |
resource.service |
snowflake |
description |
table description |
schema |
[]column |
Column
Field |
Sample Value |
name |
total_price |
description |
item's total price |
data_type |
decimal |
is_nullable |
true |
length |
11 |
Contributing
Refer to the contribution guidelines for information on contributing to this module.
Documentation
¶
type Config struct {
ConnectionURL string `json:"connection_url" yaml:"connection_url" mapstructure:"connection_url" validate:"required"`
Exclude Exclude `json:"exclude" yaml:"exclude" mapstructure:"exclude"`
}
Config holds the connection URL for the extractor
type Exclude struct {
Databases []string `json:"databases" yaml:"databases" mapstructure:"databases"`
Tables []string `json:"tables" yaml:"tables" mapstructure:"tables"`
}
type Extractor struct {
}
Extractor manages the extraction of data from snowflake
New returns a pointer to an initialized Extractor Object
Extract collects metadata of the database through emitter
Init initializes the extractor
Option provides extension abstraction to Extractor constructor
WithHTTPTransport assign custom http client to the Extractor constructor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.