-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add json type support for Oracle (#10611)
* refactor: remove oracle docker tests and update DEVELOPER.md Since oracle runs at thin mode now. Now extra docker tests are needed * chore: increase oracle version to 21c * feat: add json column types to oracle * fix: try to resolve pipeline issue to increase oracle waiting time * fix: try remove networks from oracle to fix pipeline * fix: add container name * fix: add missing oracledb driver in package-lock.json * fix: corrected tests * fix: remove tests, since only work with old oracle db * fix: correct tests * fix: remove deprecated types * fix: add missing grant for materialized views * fix: oracle-isolation.ts test * fix: issue-3363.ts test * fix: schema in tests
- Loading branch information
Showing
23 changed files
with
113 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ALTER SESSION SET CONTAINER = XEPDB1; | ||
|
||
CREATE TABLESPACE typeormspace32 | ||
DATAFILE 'typeormspace32.dbf' | ||
SIZE 100M | ||
AUTOEXTEND ON; | ||
|
||
-- create users: | ||
CREATE USER typeorm IDENTIFIED BY "oracle" DEFAULT TABLESPACE typeormspace32; | ||
|
||
GRANT CREATE SESSION TO typeorm; | ||
GRANT CREATE TABLE TO typeorm; | ||
GRANT CREATE VIEW TO typeorm; | ||
GRANT CREATE MATERIALIZED VIEW TO typeorm; | ||
GRANT CREATE PROCEDURE TO typeorm; | ||
GRANT CREATE SEQUENCE TO typeorm; | ||
|
||
ALTER USER typeorm QUOTA UNLIMITED ON typeormspace32; | ||
|
||
-- set password expiry to unlimited | ||
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME UNLIMITED; | ||
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
FROM node:12 | ||
FROM container-registry.oracle.com/database/express:21.3.0-xe | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get -qq -y install libaio1 && \ | ||
apt-get -q -y autoremove && \ | ||
rm -Rf /var/lib/apt/lists/* | ||
ENV ORACLE_PWD=oracle | ||
ENV ORACLE_SID=XE | ||
COPY 01_init.sql /docker-entrypoint-initdb.d/startup/ | ||
ENV PORT=1521 | ||
|
||
WORKDIR /typeorm | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
COPY . / | ||
RUN chmod 0755 /docker-entrypoint.sh | ||
|
||
ENV PATH="$PATH:/typeorm/node_modules/.bin" | ||
ENV LD_LIBRARY_PATH="/typeorm/node_modules/oracledb/instantclient_19_8/:$LD_LIBRARY_PATH" | ||
ENV BLOB_URL="https://download.oracle.com/otn_software/linux/instantclient/19800/instantclient-basiclite-linux.x64-19.8.0.0.0dbru.zip" | ||
|
||
CMD ["npm", "run", "test-fast"] | ||
EXPOSE ${PORT} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.