47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
# Telosys databases configuration
|
|
#
|
|
# . id : must be unique (database identifier)
|
|
#
|
|
# "metadata" configuration :
|
|
# . catalog : the catalog where to search the metadata ( "!" means "null" )
|
|
# . schema : the schema where to search the metadata ( "!" means "null" )
|
|
# . tableNamePattern : the pattern used as table name filter ( ex : "%", "A%", ... )
|
|
# . tableTypes : the types to retrieve, separated by blanks ( ex : "TABLE", "TABLE VIEW", ... )
|
|
# . tableNameExclude : the pattern used to exclude tables
|
|
# . tableNameInclude : the pattern used to include tables
|
|
#
|
|
# NB: this a YAML file, don't forget to use QUOTES when a special character is used
|
|
|
|
databases :
|
|
# PostgreSQL database identified by "pg"
|
|
- id: pg
|
|
name: PostgreSQL database
|
|
type: POSTGRESQL
|
|
# JDBC driver
|
|
driver: org.postgresql.Driver
|
|
# JDBC url: jdbc:postgresql://{HOST}:{PORT}/{DATABASE}
|
|
url: jdbc:postgresql://myhost:5432/mydatabase
|
|
user: bob
|
|
password: secret
|
|
# Metadata parameters
|
|
catalog: '!'
|
|
# schema: '!' ok to get tables but not to get columns, etc
|
|
schema: public
|
|
tableNamePattern:
|
|
tableNameInclude:
|
|
tableNameExclude:
|
|
tableTypes: TABLE
|
|
#--- Telosys model creation
|
|
# what kind of links to define in the model
|
|
linksManyToOne: true
|
|
linksOneToMany: false
|
|
linksManyToMany: false
|
|
# what kind of database information to define in the model (true for all by default)
|
|
dbComment: false
|
|
dbCatalog : true
|
|
dbSchema : true
|
|
dbTable : true
|
|
dbView : false
|
|
dbName : true
|
|
dbType : true
|
|
dbDefaultValue: false |