Import data from MySQL database.
type
:"MySQL"
name
: str, requiredtype
: strcache_ttl
: intidentifier
: strsecrets_storage_version
: str, defaults to 1host
: str, requiredport
: intuser
: str, requiredpassword
: SecretStrcharset
: str, defaults to utf8mb4connect_timeout
: intssl_ca
: SecretStr. The CA certificate content in PEM format to use to connect to the MySQL server. Equivalent of the --ssl-ca option of the MySQL clientssl_cert
: SecretStr. The X509 certificate content in PEM format to use to connect to the MySQL server. Equivalent of the --ssl-cert option of the MySQL clientssl_key
: SecretStr. The X509 certificate key content in PEM format to use to connect to the MySQL server. Equivalent of the --ssl-key option of the MySQL clientssl_mode
: SSLMode. SSL Mode to use to connect to the MySQL server. Equivalent of the --ssl-mode option of the MySQL client. Must be set in order to use SSL. If set, must be one ofREQUIRED
,VERIFY_CA
orVERIFY_IDENTITY
.
DATA_PROVIDERS: [
type: '<type>'
name: '<name>'
cache_ttl: '<cache_ttl>'
identifier: '<identifier>'
secrets_storage_version: '<secrets_storage_version>'
host: '<host>'
port: '<port>'
user: '<user>'
password: '<password>'
charset: '<charset>'
connect_timeout: '<connect_timeout>'
ssl_ca: '<ssl_ca>'
ssl_cert: '<ssl_cert>'
ssl_key: '<ssl_key>'
ssl_mode: '<ssl_mode>'
,
...
]
Either query
or table
are required, both at the same time are not supported.
domain
: str, requiredname
: str, requiredcache_ttl
: intdatabase
: str, requiredfollow_relations
: booltable
: strquery
: str (not empty)query_object
: dictlanguage
: str, defaults to sql
DATA_SOURCES: [
domain: '<domain>'
name: '<name>'
cache_ttl: '<cache_ttl>'
database: '<database>'
follow_relations: '<follow_relations>'
table: '<table>'
query: '<query>'
query_object: '<query_object>'
language: '<language>'
,
...
]