Skip to content

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxiaojian committed Mar 3, 2024
1 parent 6a70411 commit 3df2995
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/content/how-to/creating-catalogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,22 @@ Paimon JDBC Catalog in Flink needs to correctly add the corresponding jar packag
CREATE CATALOG my_jdbc WITH (
'type' = 'paimon',
'metastore' = 'jdbc',
-- 'uri' = 'jdbc:mysql://<host>:<port>/<databaseName>',
-- 'jdbc.user' = '...',
-- 'jdbc.password' = '...',
-- 'initialize-catalog-tables'='true'
-- 'warehouse' = 'hdfs:///path/to/warehouse',
'uri' = 'jdbc:mysql://<host>:<port>/<databaseName>',
'jdbc.user' = '...',
'jdbc.password' = '...',
'catalog-name'='jdbc'
'initialize-catalog-tables'='true'
'warehouse' = 'hdfs:///path/to/warehouse'
);
USE CATALOG my_jdbc;
```
You can define any connection parameters for a database with the prefix "jdbc.".
You can define the "initialize-catalog-tables" configuration to automatically create tables required for the initial JdbcCatalog. If it is true, tables will be automatically created when initializing JdbcCatalog. If it is false, tables will not be automatically created and you must manually create them.
You can also customize the name of the created jdbc catalog through 'catalog-name'.
You can define any default table options with the prefix `table-default.` for tables created in the catalog.
{{< /tab >}}
Expand Down

0 comments on commit 3df2995

Please sign in to comment.