The Connection defines list values the credential must have
For example
Database connection
Database credential
List of connection properties is user definable

This dialog allows to create new credentials or download credentials the from public library

To create new connection click Add Connection, fill in all necessary fields and press Save button


Property types


Validation Script Example
const typeorm = require("typeorm");
var result = { status: SUCCESS, message: "Success" };
try {
// Documentation
// https://typeorm.io/
const connection = {
name: "test",
type: connectionParameters.type,
host: connectionParameters.host,
port: Number(connectionParameters.port),
username: connectionParameters.username,
password: connectionParameters.password,
database: connectionParameters.database,
options: {
instanceName: connectionParameters.instanceName,
encrypt: false,
},
};
const dataSource = new typeorm.DataSource(connection);
// Testing connection
await dataSource.initialize();
await dataSource.destroy();
} catch (e) {
result.status = ERROR;
result.message = e.message;
}
return result;
This dialogue publishes connection to the public library so it can be used by all users of Some code

19 July 2023
Back
Creating ActionsNext Page
Creating Credentials