Modified repositories:
This file contains hidden or 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
import cx_Oracle | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import sessionmaker | |
oracle_connection_string = 'oracle+cx_oracle://{username}:{password}@{hostname}:{port}/{database}' | |
engine = create_engine( | |
oracle_connection_string.format( | |
username="username", | |
password="password", |
This file contains hidden or 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
from sqlalchemy.testing.profiling import profiled | |
from sqlalchemy import create_engine | |
from sqlalchemy import event | |
engine = create_engine('oracle://scott:tiger@localhost/xe') | |
# disregard all output type handling - Python unicodes | |
# will no longer be supported | |
@event.listens_for(engine, "connect") |
This file contains hidden or 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
FROM debian:stable-slim | |
COPY instantclient-basic-linux.x64-12.2.0.1.0.zip / | |
COPY test_pool.py / | |
RUN apt-get update ; \ | |
apt-get install -y build-essential python3 python3-dev python3-pip \ | |
libaio1 unzip ; \ | |
mkdir -p /opt/oracle ; \ | |
unzip /instantclient-basic-linux.x64-12.2.0.1.0.zip -d /opt/oracle ; \ | |
rm -rf /instantclient-basic-linux.x64-12.2.0.1.0.zip ; \ | |
pip3 install cx_Oracle ; \ |
This file contains hidden or 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
import React from "react"; | |
import dateFns from "date-fns"; | |
class Calendar extends React.Component { | |
state = { | |
currentMonth: new Date(), | |
selectedDate: new Date() | |
}; | |
renderHeader() { |
This file contains hidden or 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
# https://docs.docker.com/compose/yml/ | |
# Each service defined in docker-compose.yml must specify exactly one of | |
# image or build. Other keys are optional, and are analogous to their | |
# docker run command-line counterparts. | |
# | |
# As with docker run, options specified in the Dockerfile (e.g., CMD, | |
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to | |
# specify them again in docker-compose.yml. | |
# | |
service_name: |
This file contains hidden or 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
from flask import Flask | |
from flask_sqlalchemy import SQLAlchemy | |
import os | |
import graphene | |
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField | |
from flask_graphql import GraphQLView | |
################################# | |
app = Flask(__name__) | |
app.debug = True |
Use these files to run a cli/silent install of OBIEE 12c