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

Support for oracle #93

Open
AI-Ying opened this issue Mar 26, 2021 · 0 comments
Open

Support for oracle #93

AI-Ying opened this issue Mar 26, 2021 · 0 comments

Comments

@AI-Ying
Copy link

AI-Ying commented Mar 26, 2021

  1. defaults/cesi.conf.toml
database = "oracle://scott:tiger@127.0.0.1:1521/?service_name=orcl"
#database = "sqlite:////opt/cesi/< version >/users.db"  # Absolute path
#database = "postgres://<user>:<password>@localhost:5432/<database_name>"
#database = "mysql+pymysql://<user>:<password>@localhost:3306/<database_name>"
  1. cesi/models.py
class User(db.Model):
    __tablename__ = "users"
    id = db.Column(db.Integer, db.Sequence("id_sequence", increment=1), primary_key=True)
  1. cx_oracle
pip install cx_oracle
  1. Download oracle instantclient
cd ${CESI_SETUP_PATH}
wget https://download.oracle.com/otn_software/linux/instantclient/185000/instantclient-basic-linux.x64-18.5.0.0.0dbru.zip
unzip instantclient-basic-linux.x64-18.5.0.0.0dbru.zip
export LD_LIBRARY_PATH="/opt/cesi/instantclient_18_5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@AI-Ying and others