-
Notifications
You must be signed in to change notification settings - Fork 3
Datasource
Datasource commands are used to configure and alter WSO2 packs to work with other supported databases. The Datasource command has the following child commands to perform configuration changes based on WSO2 products ...
Use one of the below-stated commands to list all commands and flags
hydrogen datasource
hydrogen datasource --help
Alter datasources of WSO2 products (fresh-pack) with supported datasource vendors
USAGE
$ hydrogen [COMMAND]
DESCRIPTION
...
Alter datasource configurations of WSO2 products based on your preference.
List all available datasource commands using
$ hydrogen datasource --help
EXAMPLE
$ hydrogen datasource:is [FLAGS] [ARGS]
COMMANDS
datasource:is Alter datasources of WSO2 IS products (fresh-pack) with supported datasource models
Alter datasources of WSO2 IS products (fresh-pack) with supported datasource models
USAGE
$ hydrogen datasource:is [FLAGS] [ARGS]
OPTIONS
-r, --replace replace h2 datasource
-c, --container create docker container for datasource
-d, --datasource=postgres|mysql|oracle (required) datasource type
-g, --generate generate databases and tables in the container
-v, --version=5.7 (required) [default: 5.7] wso2is product version
DESCRIPTION
...
Alter datasource configurations of WSO2 IS products based on your preference.
As of now, Hydrogen only supports replacing the default H2 datasource with a variety
of available supported datasource models. To replace the default shipped H2 datasource,
use --replace (-r) and pass supported datasource with --datasource flag (--datasource mysql).
EXAMPLES
Replace H2 with Postgres
$ hydrogen datasource:is --replace -v 5.7 -d postgres
Replace H2 with Postgres and generate a container for database
$ hydrogen datasource:is --replace -v 5.7 -d postgres --container --generate
The child command datasource:is
is used to perform datasource related configurations and alteration on WSO2 Identity Server products. The latest release supports the following versions of WSO2 Identity Servers ...
- v5.7.0
And the following databases ...
- Postgres : with Docker support to create and generate databases
v9.6.14
- MySQL : with Docker support to create and generate databases
v8.0.0
- MSSQL: with Docker support to create and generate databases
2017:latest
- Oracle
Alter datasources of WSO2 APIM products (fresh-pack) with supported datasource models
USAGE
$ hydrogen datasource:am [FLAGS] [ARGS]
OPTIONS
-c, --container create docker container for datasource
-d, --datasource=postgres|mysql|mssql|oracle (required) datasource type
-g, --generate generate database and tables in run-time created container
-r, --replace replace h2 datasource
-s, --setup setup am, um, & reg datasource
-v, --version=2.6 (required) [default: 2.6] wso2am product version
DESCRIPTION
...
Alter datasource configurations of WSO2 APIM products based on your preference.
As of now, Hydrogen only supports replacing the default H2 datasource with a variety
of available datasource models. To replace the default shipped H2 datasource,
use --replace (-r) and pass supported datasource with --datasource flag (--datasource mysql).
EXAMPLES
Replace H2 with Postgres
$ hydrogen datasource:am --replace -v 2.6 -d postgres
Replace H2 with Postgres and generate a container for database
$ hydrogen datasource:am --replace -v 2.6 -d postgres --container --generate
Setup AM, UM, & REG Datasrouce with Postgres
$ hydrogen datasource:am --setup -v 2.6 -d postgres
Setup AM, UM, & REG Datasrouce with Postgres and generate a container for database
$ hydrogen datasource:am --setup -v 2.6 -d postgres --container --generate
The child command datasource:am
is used to perform datasource related configurations and alteration on WSO2 API Manager Server products. The latest release supports the following versions of WSO2 API Manager Servers ...
- v2.6.0
And the following databases ...
- Postgres : with Docker support to create and generate databases
v9.6.14
- MySQL : with Docker support to create and generate databases
v8.0.0
- MSSQL: with Docker support to create and generate databases
2017:latest
- Oracle
[ ✏️ Under Progress ]