JDBC database (jdbc)¶
YAML location: an entry in a flowgroup’s actions list.
Source selector: source.type: jdbc.
Reads from an external database over JDBC. Fields live under source:.
Minimal example¶
Add this entry to the actions list in your flowgroup.
- name: load_jdbc
type: load
source:
type: jdbc
url: "jdbc:postgresql://host:5432/db"
user: "${secret:db/user}"
password: "${secret:db/password}"
driver: org.postgresql.Driver
table: public.orders
target: v_orders
Source fields¶
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
— |
Must be |
|
string |
Yes |
— |
JDBC URL. |
|
string |
Yes |
— |
Username; supply via |
|
string |
Yes |
— |
Password; supply via |
|
string |
Yes |
— |
JDBC driver class. |
|
string |
One of |
— |
Table name. Supply |
|
string |
One of |
— |
SQL query. Supply |
Action-level fields¶
These fields apply to every load sub-type. name, type, source and target are required.
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
— |
Unique action name within the flowgroup. |
|
string |
Yes |
— |
Always |
|
mapping |
Yes |
— |
Source configuration. |
|
string |
Yes |
— |
Name of the temporary view this action creates. |
|
string |
No |
sub-type |
|
|
string |
No |
auto |
Docstring for the generated view function. |
|
bool or list[string] |
No |
— |
Explicit column names to add; action-level |
|
list[string] |
No |
— |
Extra upstream table or view references added to the dependency graph. See Dependency analysis reference. |
See the worked guide or choose another load source.
The JDBC generator uses the fields listed above. It does not forward an
arbitrary source.options mapping; use a Python loader when the connection
requires reader options beyond this interface.