web_plsql
Version:
The Express Middleware for Oracle PL/SQL
30 lines (27 loc) • 951 B
JavaScript
#!/usr/bin/env node
import {startHttpServer} from 'web_plsql';
void startHttpServer({
port: 8888,
routeStatic: [
{
route: '/static',
directoryPath: 'examples/static',
},
],
routePlSql: [
{
route: '/sample',
user: 'sample', // PlsqlDatabaseUserName
password: 'sample', // PlsqlDatabasePassword
connectString: 'host.docker.internal:1521/TEST', // PlsqlDatabaseConnectString
defaultPage: 'sample_pkg.page_index', // PlsqlDefaultPage
documentTable: 'doctable', // PlsqlDocumentTablename
exclusionList: ['sample_pkg.page_exclusion_list'], // PlsqlExclusionList
requestValidationFunction: 'sample_pkg.request_validation_function', // PlsqlRequestValidationFunction
pathAlias: 'myalias', // PlsqlPathAlias
pathAliasProcedure: 'sample_pkg.page_path_alias', // PlsqlPathAliasProcedure
errorStyle: 'debug', // PlsqlErrorStyle
},
],
loggerFilename: 'access.log', // PlsqlLogEnable and PlsqlLogDirectory
});