Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/hck 4776 bbva sequences definition for oracle alter script #82

Conversation

serhii-filonenko
Copy link
Contributor

Sub-taskHCK-4776 [BBVA] Sequences definition for Oracle: Alter script

  • implemented generation of alter script for schema sequences


return (container.role?.sequences || [])
.map((sequence) => ddlProvider.createSchemaSequence({ schemaName, sequence }))
.map((script) => AlterScriptDto.getInstance([script], true, false))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really have to iterate twice here? Can't we just expand the function block of a first map and do whatever we need within a single iteration?

* @returns {string}
*/
createSchemaSequence({ schemaName, sequence }) {
const usingTryCatchWrapper = shouldUseTryCatchIfNotExistsWrapper(options?.dbVersion);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please double-check formatting

@chulanovskyi-bs chulanovskyi-bs added this pull request to the merge queue Mar 27, 2024
Merged via the queue into master with commit a8e1300 Mar 27, 2024
2 checks passed
@chulanovskyi-bs chulanovskyi-bs deleted the Feature/HCK-4776-BBVA-Sequences-definition-for-Oracle-Alter-script branch March 27, 2024 17:45
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.

2 participants