42 lines
1.2 KiB
TypeScript
Raw Normal View History

import { SourceConfig } from '../types';
import postgresLogo from '../../../../../images/postgreslogo.png';
const baseUrl = window.location.origin;
const placeholderRecipe = `\
source:
type: postgres
config:
# Coordinates
host_port: # Your Postgres host and port, e.g. postgres:5432
database: # Your Postgres Database, e.g. sample_db
# Credentials
# Add secret in Secrets Tab with relevant names for each variable
username: "\${POSTGRES_USERNAME}" # Your Postgres username, e.g. admin
password: "\${POSTGRES_PASSWORD}" # Your Postgres password, e.g. password_01
# Options
include_tables: True
include_views: True
# Profiling
profiling:
enabled: false
sink:
type: datahub-rest
config:
server: "${baseUrl}/api/gms"
# Add a secret in secrets Tab
token: "\${GMS_TOKEN}"`;
const postgresConfig: SourceConfig = {
type: 'postgres',
placeholderRecipe,
displayName: 'Postgres',
docsUrl: 'https://datahubproject.io/docs/generated/ingestion/sources/postgres/',
logoUrl: postgresLogo,
};
export default postgresConfig;