package
Version:
v0.10.4
Opens a new window with list of versions in this module.
Published: Apr 18, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
clickhouse
Usage
source:
name: clickhouse
config:
connection_url: tcp://localhost:3306?username=admin&password=pass123&debug=true
Key |
Value |
Example |
Description |
|
connection_url |
string |
tcp://localhost:3306?username=admin&password=pass123&debug=true |
URL to access the clickhouse server |
required |
Outputs
Field |
Sample Value |
resource.urn |
my_database.my_table |
resource.name |
my_table |
resource.service |
clickhouse |
description |
table description |
profile.total_rows |
2100 |
schema |
[]Column |
Column
Field |
Sample Value |
name |
total_price |
description |
item's total price |
data_type |
String |
Contributing
Refer to the contribution guidelines for information on contributing to this module.
Documentation
¶
type Config struct {
ConnectionURL string `mapstructure:"connection_url" validate:"required"`
}
Config holds the connection URL for the extractor
type Extractor struct {
}
Extractor manages the output stream
and logger interface for the extractor
New returns a pointer to an initialized Extractor Object
Extract checks if the extractor is configured and
if the connection to the DB is successful
and then starts the extraction process
Init initializes the extractor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.