Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
91c1cc8
feat(oracle): add support to v7
Aug 8, 2023
289f7f8
add the necessary files needed in v7
Aug 8, 2023
61fa342
add query-interface for oracle dialect
hjamil-24 Aug 15, 2023
56258c6
add query.js for oracle
hjamil-24 Aug 22, 2023
246c84f
Merge branch 'main' into v7_support
hjamil-24 Aug 22, 2023
635017a
modify signature of describeTable
hjamil-24 Sep 5, 2023
8144d54
Merge branch 'main' into v7_support
hjamil-24 Sep 5, 2023
4eecf98
Merge branch 'main' into v7_support
hjamil-24 Oct 11, 2023
4e26aea
feat(oracle): add generic code
hjamil-24 Oct 12, 2023
122698e
feat (oracle): add query-interface-typescript
hjamil-24 Oct 23, 2023
07c47e3
feat(oracle): add dropTable() instead of removing constraint and drop
hjamil-24 Oct 30, 2023
a784b0d
feat(oracle) :remove deprecated rawAttribute
hjamil-24 Nov 8, 2023
7882a4f
feat(oracle) : replace deprecated Model.rawAttribute and bulkInsert o…
hjamil-24 Nov 9, 2023
b72eb4d
feat(oracle) : fix issue with null id value
hjamil-24 Nov 14, 2023
f60829f
feat(oracle): fix missing unique in index
hjamil-24 Nov 16, 2023
7e317f9
feat(oracle): fixed issue with bindParameter
hjamil-24 Nov 20, 2023
0870065
feat(oracle): remove deprecated
hjamil-24 Nov 21, 2023
b28c374
feat(oracle): add parseDatabaseValue() and bindParam to DATEONLY
hjamil-24 Nov 21, 2023
d48fb83
feat(oracle): fixed issue with ENUM and bind variables
hjamil-24 Nov 22, 2023
8f97ee7
feat(oracle): add getDefaultPort() and fixed pool test-case
hjamil-24 Nov 22, 2023
fe9bcdd
feat(oracle): fix test case for oracle
hjamil-24 Nov 23, 2023
29c9a7c
feat(oracle) : add oracle conditions in test cases
hjamil-24 Nov 23, 2023
9b33b42
feat(oracle): skip test-cases not valid for oracle dialect
hjamil-24 Nov 24, 2023
0f692b5
feat(oracle): add escapeString() to index and test case correction
hjamil-24 Nov 24, 2023
fa7cdb1
feat(oracle): write showConstraintQuery() for Oracle
hjamil-24 Nov 26, 2023
4cd4f08
feat(oracle): fix removeColumn issue and test cases
hjamil-24 Nov 27, 2023
d52a34c
feat(oracle): removed deprecated model.rawAttributes
hjamil-24 Nov 27, 2023
eafa59a
feat(oracle): add sanitize() to DECIMAL
hjamil-24 Nov 27, 2023
d1d3c64
feat(oracle): add escapebuffer and test case fixes
hjamil-24 Nov 28, 2023
aa5d3db
feat(oracle): add fetchAsBuffer for LOBs
hjamil-24 Nov 29, 2023
c34bd8d
feat(oracle): fix returning id alias for insert statements
hjamil-24 Nov 29, 2023
0fa8ed4
feat(oracle): fix issue with difference in names in v7
hjamil-24 Nov 30, 2023
571884a
feat(oracle): fix testcases and alias columnName
hjamil-24 Dec 1, 2023
3b313bf
feat(oracle): add defaultSchema, fixed validation error message, fixe…
hjamil-24 Dec 4, 2023
ed9371d
feat(oracle): fix for bindnames, handleShowIndexQuery(), errors and f…
hjamil-24 Dec 5, 2023
91c7951
feat(oracle): fix STRING.BINARY, DATE
hjamil-24 Dec 10, 2023
32da120
feat(oracle): fix index issue, listSchema alias, missing unique from …
hjamil-24 Dec 12, 2023
4d29c25
feat(oracle): fix issues with unique key constraint
hjamil-24 Dec 13, 2023
ed45652
feat(oracle): fix listTables(), fix test cases
hjamil-24 Dec 15, 2023
86dc157
feat(oracle): add schema name in constraint query and alterForiegnKeys
hjamil-24 Dec 16, 2023
b0a3f16
feat(oracle): fix rename table
hjamil-24 Dec 18, 2023
d477697
feat(oracle): fix test cases
hjamil-24 Jan 9, 2024
d3355c5
feat(oracle): fixed data-types unit test cases
hjamil-24 Jan 17, 2024
8094dde
feat(oracle): fix unit tests querygenerator
hjamil-24 Jan 18, 2024
c89bf08
feat(oracle): fixed unit test cases
hjamil-24 Jan 22, 2024
128d661
feat(oracle): fix onUpdate cascade, type issues in createTable, BIGIN…
hjamil-24 Jan 24, 2024
26f0e2c
feat(oracle): add setup files for docker, CI and update package.json
hjamil-24 Jan 29, 2024
797d46d
feat(oracle): fix issue with uniqueKeys options in createTableQuery()
hjamil-24 Jan 29, 2024
321e537
feat(oracle): fix test cases
hjamil-24 Feb 1, 2024
0cc55b9
feat(oracle): fix issue with reserved word for binds in upsert();2C
hjamil-24 Feb 1, 2024
d5c7c23
feat(oracle): add Oracle specific tests
hjamil-24 Feb 1, 2024
4ce0cac
add Copyright information to oracle specific files
hjamil-24 Feb 5, 2024
ab1be6d
feat(oracle): resolve conflict
hjamil-24 Feb 6, 2024
5f1d402
feat(oracle): pull latest change and fix unit-tests
hjamil-24 Feb 7, 2024
b021a9e
feat(oracle): fix assertion integration test due to new commits in main
hjamil-24 Feb 8, 2024
54a7f88
feat(oracle): fix test issues due to commits in main
hjamil-24 Feb 8, 2024
f5a9278
feat(oracle): fix test case with new commits in main
hjamil-24 Feb 8, 2024
35b3389
feat(oracle): update unit test for bulkDeleteQuery()
hjamil-24 Feb 15, 2024
6a50b60
feat(oracle): resolve merge conflicts, create new query-interfface-in…
hjamil-24 Feb 15, 2024
c41d20a
feat(oracle): fix integration test for describeTableQuery()
hjamil-24 Feb 16, 2024
48f70f1
feat(oracle): support JSON extraction
hjamil-24 Feb 20, 2024
80b7529
fix: resolve merge conflict
hjamil-24 Feb 21, 2024
fad7955
feat(oracle): migrate transaction
hjamil-24 Feb 22, 2024
4594791
Merge branch 'main' into v7_support
hjamil-24 Feb 23, 2024
414a323
fix(oracle): fix test case
hjamil-24 Feb 23, 2024
dbc6d3a
fix(oracle): resolve merge conflicts
hjamil-24 Feb 27, 2024
bac7b23
fix(oracle): resolve merge conflicts
hjamil-24 Feb 27, 2024
14017cb
fix(oracle): fix eslint issues
hjamil-24 Feb 27, 2024
9407b49
Merge branch 'main' into v7_support
hjamil-24 Mar 11, 2024
d7726f4
fix: merge main
hjamil-24 Mar 22, 2024
4a69df5
feat(oracle): fix oracle case
hjamil-24 Mar 26, 2024
8b63962
bump version
hjamil-24 Mar 28, 2024
16309b7
update yarn.lock
hjamil-24 Mar 28, 2024
6e71bcd
reorganize oracle files
hjamil-24 Apr 5, 2024
e3825f5
feat(oracle): refactor code
hjamil-24 Apr 18, 2024
13694f2
feat(oracle): resolve merge conflict
hjamil-24 Apr 22, 2024
09bfadc
Merge branch 'main' into v7_support
hjamil-24 Apr 22, 2024
babeb28
Merge branch 'main' into v7_support
hjamil-24 May 2, 2024
49af828
feat(oracle): eslint issue
hjamil-24 May 2, 2024
0b701fc
feat(oracle): fix prettier issue
hjamil-24 May 2, 2024
7694d3b
feat(oracle): fix irregular file name issue
hjamil-24 May 3, 2024
bc316e1
feat(oracle): resolve conflict
hjamil-24 May 4, 2024
8e19a1f
Merge branch 'main' into v7_support
hjamil-24 May 4, 2024
f270266
Merge branch 'main' into v7_support
hjamil-24 May 5, 2024
d2157ba
feat(oracle): fix issue with oracledb object
hjamil-24 May 7, 2024
e12f0f0
feat(oracle): resolve merge conflict
hjamil-24 May 7, 2024
e3d2dc8
feat(oracle): package.json fix
hjamil-24 May 7, 2024
99b57b4
feat(oracle): fix breakage
hjamil-24 May 8, 2024
8d5e4f3
feat(oracle): merge main
hjamil-24 May 9, 2024
3133f39
feat(oracle): merge main
hjamil-24 May 13, 2024
1a23bb8
fix(snowflake): build failure
hjamil-24 May 15, 2024
74681be
fix(oracle): rename file wait-until-healthy
hjamil-24 May 15, 2024
d4345bf
merge main
hjamil-24 May 15, 2024
ad68c1f
fix: yarn.lock file
hjamil-24 May 15, 2024
86a7c61
fix permission
hjamil-24 May 15, 2024
2549122
fix(oracle): check
hjamil-24 May 15, 2024
3577807
fix(oracle); ci fix
hjamil-24 May 16, 2024
bb0e35f
add environment
hjamil-24 May 16, 2024
8c61b83
sadf
hjamil-24 May 16, 2024
bc3d732
env setup
hjamil-24 May 16, 2024
c48a56f
fix
hjamil-24 May 16, 2024
68a749c
skipped test requiring higher privileges
hjamil-24 May 16, 2024
182ccaf
fix(oracle): check values
hjamil-24 May 16, 2024
a07c873
fix for 23 database
hjamil-24 May 16, 2024
a6973ca
fix order by
hjamil-24 May 20, 2024
9d0fdd7
skipped test cases not supported in earlier db version
hjamil-24 May 20, 2024
aa5dcb7
resolve merge conlicts
hjamil-24 May 21, 2024
9b8e52a
delete file
hjamil-24 May 21, 2024
573bbcd
Merge branch 'main' into v7_support
hjamil-24 May 21, 2024
ba5d5d9
fix snowflake issue
hjamil-24 May 21, 2024
a0ebe7c
bump version to oracledb 6.5
hjamil-24 May 21, 2024
980a277
feat(oracle): resolve merge conflicts
hjamil-24 May 31, 2024
887d7b9
fix(oracle): fix review comment
hjamil-24 May 31, 2024
73b66f5
feat(oracle): add reset.sh file
hjamil-24 Jun 3, 2024
c82a9d3
merge main
hjamil-24 Jun 12, 2024
2566faa
fix(oracle): update yarn.lock
hjamil-24 Jun 12, 2024
75b4808
fix(oracle): changelog
hjamil-24 Jun 12, 2024
e32d7d6
feat(oracle): update connectionOptions
hjamil-24 Jun 14, 2024
8bb30bb
fix(oracle): refactor test case
hjamil-24 Jun 18, 2024
273bd68
feat(oracle): fix review comments
hjamil-24 Jun 20, 2024
5d971da
fix(oracle): fix prettier issue
hjamil-24 Jun 21, 2024
950aa88
fix(oracle): remove oracle comments
hjamil-24 Jun 21, 2024
4f006a5
fix(oracle): fix merge conflicts
hjamil-24 Jun 21, 2024
05b9f9a
fix(oracle): resolve merge conflicts
hjamil-24 Jun 24, 2024
d11e377
feat(oracle): merge main
hjamil-24 Oct 10, 2024
c187f63
fix: resolve merge conflicts
hjamil-24 Oct 17, 2024
4a1103d
fix(oracle): validate TO_TIMESTAMPTZ and TO_DATE
hjamil-24 Oct 17, 2024
0af2681
Merge branch 'main' into v7_support
hjamil-24 Oct 21, 2024
1ce74b7
feat(oracle): run oracle test seperately in workflow
hjamil-24 Oct 21, 2024
b105d51
feat(oracle): merge main
hjamil-24 Oct 23, 2024
ee3bb28
feat(oracle): update package.json
hjamil-24 Oct 24, 2024
9eda26f
fix(oracle): revert changes
hjamil-24 Oct 24, 2024
581820e
feat(oracle): resolve conflicts
hjamil-24 Oct 28, 2024
3ab16c5
Merge branch 'main' into v7_support
hjamil-24 Oct 28, 2024
318e7d1
fix(oracle): issues with lock file
hjamil-24 Oct 28, 2024
9c7b1ba
feat(oracle): add oracle dependency
hjamil-24 Oct 28, 2024
c6eb4dd
fix(oracle): prettier issue correction
hjamil-24 Oct 28, 2024
d43eee6
fix(oracle): fix issues with dev files
hjamil-24 Oct 28, 2024
58e55ca
feat(oracle): add url support to connect
hjamil-24 Oct 29, 2024
7679266
feat(oracle): assertions to oracle
hjamil-24 Oct 29, 2024
ed77ca8
fix(oracle): fix prettier issue
hjamil-24 Oct 29, 2024
b563177
Merge branch 'main' into v7_support
hjamil-24 Oct 29, 2024
b572384
Merge branch 'main' into v7_support
hjamil-24 Oct 30, 2024
b86706d
meta: update dependency
hjamil-24 Oct 30, 2024
cd4889a
fix: update yarn.lock
hjamil-24 Oct 30, 2024
1b3862d
Merge branch 'main' into v7_support
hjamil-24 Nov 11, 2024
8db9172
meta: update dependency
hjamil-24 Nov 11, 2024
cea830e
Merge branch 'main' into v7_support
hjamil-24 Nov 15, 2024
66bb3c2
merge main
hjamil-24 Dec 12, 2024
8ea7e90
feat(oracle): fix review comment
hjamil-24 Dec 13, 2024
92edc81
feat(oracle): bump version of mocha
hjamil-24 Dec 13, 2024
cfb4a6c
fix(core): call internal getAlias function
hjamil-24 Dec 13, 2024
38fead4
fix(oracle): move getAliasToken()
hjamil-24 Dec 13, 2024
9429666
fix(oracle): update package.json
hjamil-24 Dec 13, 2024
10fe950
fix(oracle): fix sqlite -> sqlite3 in package.json
hjamil-24 Dec 13, 2024
32d95ac
Merge branch 'main' into v7_support
hjamil-24 Jan 15, 2025
5128c81
feat(oracle): use common wait-until-healthy
hjamil-24 Jan 15, 2025
acd559d
feat(oracle): reduce wait time after docker starts
hjamil-24 Jan 15, 2025
bdcc1ad
feat(oracle): merge main
hjamil-24 Feb 5, 2025
62642db
fix(oracle): update tests.
hjamil-24 Feb 5, 2025
b8dcc81
fix(oracle): update tests.
hjamil-24 Feb 5, 2025
6b5bdf2
feat(oracle): merge main
hjamil-24 Mar 25, 2025
7126453
feat(oracle): update versions
hjamil-24 Mar 25, 2025
1836947
fix(core): fix test case
hjamil-24 Mar 25, 2025
ab53f4e
fix(core): fix count grouping for oracle
hjamil-24 Mar 25, 2025
ddcf540
feat(oracle): resolve conflicts
hjamil-24 May 14, 2025
823354f
feat(oracle): fix review comment
hjamil-24 May 16, 2025
e99fdb0
fix(oracle): make connectionManager.lib readonly private
hjamil-24 May 21, 2025
f0f9c0f
fix(oracle): import oracledb for the bind definitions
hjamil-24 May 21, 2025
55ffbb1
fix(oracle): destructure config to include additional properties to g…
hjamil-24 May 21, 2025
acd0389
feat(oracle): update workflow based on review comments
hjamil-24 May 21, 2025
46efe07
feat(oracle): update package.json to avoid failure for windows unit-test
hjamil-24 May 21, 2025
5dfc3b6
feat(oracle): update tests based on comments
hjamil-24 May 22, 2025
fdb6211
Merge branch 'main' into v7_support
hjamil-24 May 22, 2025
8b0bef7
meta: update dependency
hjamil-24 May 22, 2025
f2dca8b
feat(oracle): fix test cases review comment
hjamil-24 May 22, 2025
edf38fa
feat(oracle): update tests
hjamil-24 May 22, 2025
154c075
meta: bump up oracledb versions
hjamil-24 May 22, 2025
45e2868
feat(oracle): update tests based on comments
hjamil-24 May 22, 2025
8f72694
feat(oracle): update tests
hjamil-24 May 23, 2025
d166b7a
feat(oracle): bigint support for oracle and update tests
hjamil-24 May 26, 2025
f96278a
feat(oracle): bigint support for oracle and update tests
hjamil-24 May 26, 2025
6e89dad
feat(oracle): update test specific to oracle
hjamil-24 May 26, 2025
0c97474
Merge branch 'main' into v7_support
hjamil-24 May 26, 2025
d95d829
feat(oracle): update test-cases
hjamil-24 May 26, 2025
82f61de
feat(oracle): update test
hjamil-24 May 27, 2025
78c2875
Merge branch 'main' into v7_support
hjamil-24 May 27, 2025
ff47876
Merge branch 'main' into v7_support
hjamil-24 May 30, 2025
e8fa670
Merge branch 'main' into v7_support
hjamil-24 Jun 12, 2025
363f30f
Merge branch 'main' into v7_support
hjamil-24 Jul 2, 2025
26f2770
meta: bump up mocha
hjamil-24 Jul 2, 2025
d4b997b
Merge branch 'main' into v7_support
hjamil-24 Jul 2, 2025
da9f86b
Merge branch 'main' into v7_support
hjamil-24 Aug 5, 2025
b894229
Merge branch 'v7_support' of github.com:hjamil-24/sequelize into v7_s…
hjamil-24 Aug 5, 2025
deaff7b
Merge branch 'main' into v7_support
hjamil-24 Sep 3, 2025
9b7beed
fix(oracle): merge conflict
hjamil-24 Oct 7, 2025
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
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ jobs:
run: yarn lerna run test-unit-ibmi --scope=@sequelize/core
- name: Unit tests (core - snowflake)
run: yarn lerna run test-unit-snowflake --scope=@sequelize/core
- name: Unit tests (core - oracle)
run: yarn lerna run test-unit-oracle --scope=@sequelize/core
- name: Unit tests (oracle package)
run: yarn lerna run test-unit --scope=@sequelize/oracle
- name: SQLite SSCCE
run: yarn sscce-sqlite3
test-win:
Expand Down Expand Up @@ -235,7 +239,7 @@ jobs:
matrix:
node-version: [18, 20]
database-version: [oldest, latest]
dialect: [mysql, mariadb, db2]
dialect: [mysql, mariadb, db2, oracle]
name: ${{ matrix.dialect }} ${{ matrix.database-version }} (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
needs: [unit-test, test-typings]
Expand Down
21 changes: 0 additions & 21 deletions CHANGELOG.md

This file was deleted.

20 changes: 20 additions & 0 deletions dev/oracle/latest/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

services:
oracle-latest:
container_name: sequelize-oracle-latest
image: gvenzl/oracle-free:23.4-slim
environment:
ORACLE_PASSWORD: password
ORACLE_DATABASE: XEPDB1
ports:
- 1521:1521
healthcheck:
test: ['CMD-SHELL', 'sqlplus', 'system/password@localhost:1521/XEPDB1']
interval: 3s
timeout: 1s
retries: 10

networks:
default:
name: sequelize-oracle-latest-network
7 changes: 7 additions & 0 deletions dev/oracle/latest/reset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

#!/usr/bin/env bash
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637

docker compose -p sequelize-oracle-latest down --remove-orphans --volumes
18 changes: 18 additions & 0 deletions dev/oracle/latest/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

#!/usr/bin/env bash
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637

docker compose -p sequelize-oracle-latest down --remove-orphans
docker compose -p sequelize-oracle-latest up -d

./../../wait-until-healthy.sh sequelize-oracle-latest

sleep 30s

docker cp ../privileges.sql sequelize-oracle-latest:/opt/oracle/.

docker exec -t sequelize-oracle-latest sqlplus system/password@localhost:1521/XEPDB1 @privileges.sql

DIALECT=oracle ts-node ../../check-connection.ts
10 changes: 10 additions & 0 deletions dev/oracle/latest/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

#!/usr/bin/env bash
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637


docker compose -p sequelize-oracle-latest down --remove-orphans

echo "Local latest supported Oracle DB instance stopped (if it was running).
19 changes: 19 additions & 0 deletions dev/oracle/oldest/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

services:
oracle-oldest:
container_name: sequelize-oracle-oldest
image: gvenzl/oracle-xe:18-slim
environment:
ORACLE_PASSWORD: password
ports:
- 1521:1521
healthcheck:
test: ['CMD-SHELL', 'sqlplus', 'system/password@XEPDB1']
interval: 3s
timeout: 1s
retries: 10

networks:
default:
name: sequelize-oracle-oldest-network
7 changes: 7 additions & 0 deletions dev/oracle/oldest/reset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

#!/usr/bin/env bash
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637

docker compose -p sequelize-oracle-oldest down --remove-orphans --volumes
17 changes: 17 additions & 0 deletions dev/oracle/oldest/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

#!/usr/bin/env bash
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637

docker compose -p sequelize-oracle-oldest down --remove-orphans
docker compose -p sequelize-oracle-oldest up -d

./../../wait-until-healthy.sh sequelize-oracle-oldest

sleep 30s

docker cp ../privileges.sql sequelize-oracle-oldest:/opt/oracle/.
docker exec -t sequelize-oracle-oldest sqlplus system/password@XEPDB1 @privileges.sql

DIALECT=oracle ts-node ../../check-connection.ts
9 changes: 9 additions & 0 deletions dev/oracle/oldest/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

#!/usr/bin/env bash
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637

docker compose -p sequelize-oracle-oldest down --remove-orphans

echo "Local oldest supported Oracle DB instance stopped (if it was running)."
6 changes: 6 additions & 0 deletions dev/oracle/privileges.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved

create user sequelizetest identified by sequelizepassword;
grant all privileges to sequelizetest;
alter user sequelizetest quota unlimited on users;
exit;
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"test-integration-db2": "yarn lerna run test-integration-db2",
"test-integration-ibmi": "yarn lerna run test-integration-ibmi",
"test-integration-snowflake": "yarn lerna run test-integration-snowflake",
"test-integration-oracle": "yarn lerna run test-integration-oracle",
"sync-exports": "lerna run sync-exports",
"build": "lerna run build",
"docs": "typedoc",
Expand All @@ -34,6 +35,7 @@
"reset-postgres": "bash dev/postgres/oldest/reset.sh; bash dev/postgres/latest/reset.sh",
"reset-mssql": "bash dev/mssql/oldest/reset.sh; bash dev/mssql/latest/reset.sh",
"reset-db2": "bash dev/db2/oldest/reset.sh; bash dev/db2/latest/reset.sh",
"reset-oracle": "bash dev/oracle/oldest/reset.sh; bash dev/oracle/latest/reset.sh",
"reset-all": "concurrently \"npm:reset-*(!all)\"",
"start-mariadb-oldest": "bash dev/mariadb/oldest/start.sh",
"start-mariadb-latest": "bash dev/mariadb/latest/start.sh",
Expand All @@ -45,13 +47,16 @@
"start-mssql-latest": "bash dev/mssql/latest/start.sh",
"start-db2-oldest": "bash dev/db2/oldest/start.sh",
"start-db2-latest": "bash dev/db2/latest/start.sh",
"start-oracle-oldest": "bash dev/oracle/oldest/start.sh",
"start-oracle-latest": "bash dev/oracle/latest/start.sh",
"start-oldest": "concurrently \"npm:start-*-oldest\"",
"start-latest": "concurrently \"npm:start-*-latest\"",
"stop-mariadb": "bash dev/mariadb/oldest/stop.sh; bash dev/mariadb/latest/stop.sh",
"stop-mysql": "bash dev/mysql/oldest/stop.sh; bash dev/mysql/latest/stop.sh",
"stop-postgres": "bash dev/postgres/oldest/stop.sh; bash dev/postgres/latest/stop.sh",
"stop-mssql": "bash dev/mssql/oldest/stop.sh; bash dev/mssql/latest/stop.sh",
"stop-db2": "bash dev/db2/oldest/stop.sh; bash dev/db2/latest/stop.sh",
"stop-oracle": "bash dev/oracle/oldest/stop.sh; bash dev/oracle/latest/stop.sh",
"stop-all": "concurrently \"npm:stop-*(!all)\"",
"----------------------------------------- SSCCEs ------------------------------------------": "",
"sscce": "ts-node sscce.ts",
Expand All @@ -61,7 +66,8 @@
"sscce-postgres-native": "cross-env DIALECT=postgres-native yarn sscce",
"sscce-sqlite3": "cross-env DIALECT=sqlite3 yarn sscce",
"sscce-mssql": "cross-env DIALECT=mssql yarn sscce",
"sscce-db2": "cross-env DIALECT=db2 yarn sscce"
"sscce-db2": "cross-env DIALECT=db2 yarn sscce",
"sscce-oracle": "cross-env DIALECT=oracle yarn sscce"
},
"workspaces": [
"packages/*"
Expand Down
20 changes: 0 additions & 20 deletions packages/core/CHANGELOG.md

This file was deleted.

10 changes: 7 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sequelize/core",
"description": "Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication and more.",
"description": "Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, Oracle, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication and more.",
"version": "7.0.0-alpha.46",
"funding": [
{
Expand Down Expand Up @@ -108,6 +108,7 @@
"sql",
"sqlserver",
"snowflake",
"oracledb",
"orm",
"nodejs",
"object relational mapper",
Expand Down Expand Up @@ -141,7 +142,8 @@
"test-unit-db2": "cross-env DIALECT=db2 yarn _test-unit",
"test-unit-ibmi": "cross-env DIALECT=ibmi yarn _test-unit",
"test-unit-snowflake": "cross-env DIALECT=snowflake yarn _test-unit",
"test-unit-all": "yarn test-unit-mariadb && yarn test-unit-mysql && yarn test-unit-postgres && yarn test-unit-mssql && yarn test-unit-sqlite3 && yarn test-unit-snowflake && yarn test-unit-db2 && yarn test-unit-ibmi",
"test-unit-oracle": "cross-env DIALECT=oracle yarn _test-unit",
"test-unit-all": "yarn test-unit-mariadb && yarn test-unit-mysql && yarn test-unit-postgres && yarn test-unit-mssql && yarn test-unit-sqlite3 && yarn test-unit-snowflake && yarn test-unit-db2 && yarn test-unit-oracle && yarn test-unit-ibmi",
"test-unit": "yarn test-unit-all",
"----------------------------------------- integration tests ---------------------------------------------": "",
"test-integration-mariadb": "cross-env DIALECT=mariadb yarn test-integration",
Expand All @@ -153,7 +155,8 @@
"test-integration-db2": "cross-env DIALECT=db2 yarn test-integration",
"test-integration-ibmi": "cross-env DIALECT=ibmi yarn test-integration",
"test-integration-snowflake": "cross-env DIALECT=snowflake yarn test-integration",
"test-integration-all": "yarn test-integration-mariadb && yarn test-integration-mysql && yarn test-integration-postgres && yarn test-integration-postgres-native && yarn test-integration-sqlite3 && yarn test-integration-mssql && yarn test-integration-db2 && yarn test-integration-ibmi && yarn test-integration-snowflake",
"test-integration-oracle": "cross-env DIALECT=oracle yarn test-integration",
"test-integration-all": "yarn test-integration-mariadb && yarn test-integration-mysql && yarn test-integration-postgres && yarn test-integration-postgres-native && yarn test-integration-sqlite3 && yarn test-integration-mssql && yarn test-integration-db2 && yarn test-integration-ibmi && yarn test-integration-snowflake && yarn test-integration-oracle",
"----------------------------------------- all tests ---------------------------------------------": "",
"test-mariadb": "cross-env DIALECT=mariadb yarn test",
"test-mysql": "cross-env DIALECT=mysql yarn test",
Expand All @@ -163,6 +166,7 @@
"test-mssql": "cross-env DIALECT=mssql yarn test",
"test-db2": "cross-env DIALECT=db2 yarn test",
"test-ibmi": "cross-env DIALECT=ibmi yarn test",
"test-oracle": "cross-env DIALECT=oracle yarn test",
"----------------------------------------- development ---------------------------------------------": "",
"build": "node ../../build-packages.mjs core"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/core/src/abstract-dialect/dialect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export type DialectSupports = {
/* does the dialect support returning values for inserted/updated fields */
returnValues: false | 'output' | 'returning';

/* does the dialect support returning values for inserted/updated fields in outBinds */
returnIntoValues: boolean;

/* does the dialect support topLevelOrderBy (ORDER BY clasue) to get desired results */
topLevelOrderByRequired: boolean;

/* features specific to autoIncrement values */
autoIncrement: {
/* does the dialect require modification of insert queries when inserting auto increment fields */
Expand Down Expand Up @@ -324,6 +330,8 @@ export abstract class AbstractDialect<
skipLocked: false,
finalTable: false,
returnValues: false,
returnIntoValues: false,
topLevelOrderByRequired: false,
autoIncrement: {
identityInsert: false,
defaultValue: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,12 @@ Only named replacements (:name) are allowed in literal() because we cannot guara
addLimitAndOffset(_options: AddLimitOffsetOptions): string {
throw new Error(`addLimitAndOffset has not been implemented in ${this.dialect.name}.`);
}

/**
* Returns the alias token 'AS' after `FROM` clause.
*
*/
getAliasToken() {
return 'AS';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ export class AbstractQueryGeneratorTypeScript<Dialect extends AbstractDialect =
}

if (options?.alias) {
sql += ` AS ${this.quoteIdentifier(options.alias === true ? tableName.tableName : options.alias)}`;
sql += ` ${this.#internals.getAliasToken()} ${this.quoteIdentifier(options.alias === true ? tableName.tableName : options.alias)}`;
}

if (options?.indexHints) {
Expand Down
Loading
Loading