version: 1
name: oracle_to_postgres
pipeline:
source:
type: oracle
config:
host: localhost
port: 1521
service_name: FREEPDB1
username: app
password: app
query: >
SELECT ID, CUSTOMER_ID, STATUS, TOTAL, UPDATED_AT
FROM APP.ORDERS
WHERE UPDATED_AT > :bookmark
replication: { type: incremental, column: UPDATED_AT, initial_value: "1970-01-01T00:00:00" }
sink:
type: postgres
config:
connection_url: postgres://faucet:faucet@localhost:5432/warehouse
table_name: orders
column_mapping: auto_map
write_mode: upsert
key: [ID]
state:
type: file
config: { path: ./.faucet-state }