oracle - implemented scope identity

This commit is contained in:
Jan Prochazka
2024-12-11 12:37:58 +01:00
parent 3f45bfcdd0
commit d71452a397
4 changed files with 26 additions and 32 deletions

View File

@@ -142,6 +142,9 @@ class Analyser extends DatabaseAnalyser {
..._.pick(col, ['columnName']),
})),
})),
identitySequenceName: (columnsGrouped[columnGroup(table)] || [])
.find(x => x?.default_value?.endsWith('.nextval'))
?.default_value?.match(/\"([^"]+)\"\.nextval/)?.[1],
};
}),
views: views.rows.map(view => ({