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: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
postgres
Usage
source:
name: postgres
config:
connection_url: postgres://admin:pass123@localhost:3306/testDB?sslmode=disable
exclude: primaryDB,secondaryDB
Key |
Value |
Example |
Description |
|
connection_url |
string |
postgres://admin:pass123@localhost:3306/testDB?sslmode=disable |
URL to access the postgres server |
required |
exclude |
string |
primaryDB,secondaryDB |
This is a comma separated db list |
optional |
Outputs
Field |
Sample Value |
resource.urn |
postgres::my-postgres/my_database/my_table |
resource.name |
my_table |
resource.service |
postgres |
description |
table description |
profile.total_rows |
2100 |
schema |
[]Column |
Column
Field |
Sample Value |
name |
total_price |
description |
item's total price |
data_type |
decimal |
is_nullable |
true |
length |
12,2 |
Contributing
Refer to the contribution guidelines for information on contributing to this module.
Documentation
¶
func ConvertStringListToInterface(s []string) []interface{}
type Config struct {
ConnectionURL string `json:"connection_url" yaml:"connection_url" mapstructure:"connection_url" validate:"required"`
Exclude string `json:"exclude" yaml:"exclude" mapstructure:"exclude"`
}
Config holds the set of configuration options for the extractor
type Extractor struct {
}
Extractor manages the extraction of data from the extractor
New returns a pointer to an initialized Extractor Object
Extract collects metadata from the source. Metadata is collected through the emitter
Init initializes the extractor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.