Skip to content

cli/oracle database support for db create and drop#1764

Merged
zainforbjs merged 5 commits intodevelopfrom
cli/commands-parameters-development
Oct 16, 2025
Merged

cli/oracle database support for db create and drop#1764
zainforbjs merged 5 commits intodevelopfrom
cli/commands-parameters-development

Conversation

@zainforbjs
Copy link
Copy Markdown
Contributor

  • Oracle database support (CREATE/DROP USER)
  • Oracle CDB compatibility with _ORACLE_SCRIPT session variable
  • Interactive datasource creation wizard (MySQL, PostgreSQL, MSSQL, Oracle, H2)
  • Oracle identifier validation (no hyphens allowed)

- Oracle database support (CREATE/DROP USER)
- Oracle CDB compatibility with _ORACLE_SCRIPT session variable
- Interactive datasource creation wizard (MySQL, PostgreSQL, MSSQL, Oracle, H2)
- Oracle identifier validation (no hyphens allowed)
- Generic database variable naming: Changed from database-specific prefixes (MYSQL_HOST, MSSQL_HOST) to generic DB_* variables (DB_HOST, DB_PORT, DB_DATABASE, DB_USER, DB_PASSWORD)
- Enhanced getDatasourceInfo(): Reads actual credentials from .env.{environment} files instead of unresolved placeholders from app.cfm
- Fixed credential mapping: DB_USER now correctly maps to dsInfo.username (not dsInfo.user)
- Fixed regex patterns: Changed double backslashes to single backslashes for proper regex matching
- Deferred datasource writing: Skip writing datasource to app.cfm during wheels env setup --skipDatabase to prevent unresolved placeholder loading
- Post-creation datasource write: Added writeDatasourceToAppCfmWithEnvVars() to write datasource after successful database creation
- Made writeDatasourceToAppCfm() public: Changed from private to public for external access
- Interactive credential prompting: Added prompts in wheels env setup when credentials not provided for non-H2 databases
- Early environment validation: Check environment existence before prompting for credentials
- Fixed duplicate error messages: Error messages now display once with proper exception propagation
- Update config/environment.cfm: wheels env switch now updates set(environment="...") value
- Updated .env file generation: Uses generic DB_* variables for all database types
- Updated connection strings: All use generic DB_* placeholders in app.cfm
- Updated documentation: Comprehensive updates to both command guides with examples and explanations
@zainforbjs zainforbjs marked this pull request as ready for review October 16, 2025 08:55
@zainforbjs zainforbjs merged commit 34b5a24 into develop Oct 16, 2025
37 checks passed
@zainforbjs zainforbjs deleted the cli/commands-parameters-development branch October 16, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant