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

New feature: Export Oracle SQL script to DBML script #546

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/dbml-cli/src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function sql2dbml (args) {
.option('--postgres')
.option('--postgres-legacy')
.option('--mssql')
.option('--oracle')
.option('-o, --out-file <pathspec>', 'compile all input files into a single files');
// .option('-d, --out-dir <pathspec>', 'compile an input directory of sql files into an output directory');

Expand Down
4 changes: 4 additions & 0 deletions packages/dbml-core/__tests__/importer/importer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@ describe('@dbml/core - importer', () => {
test.each(scanTestNames(__dirname, 'mssql_importer/input'))('mssql_importer/%s', (name) => {
runTest(name, 'mssql_importer', 'mssql');
});

test.each(scanTestNames(__dirname, 'oracle_importer/input'))('oracle_importer/%s', (name) => {
runTest(name, 'oracle_importer', 'oracle');
});
/* eslint-enable */
});
Loading