Open AI-Ying opened 3 years ago
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>"
cesi/models.py
class User(db.Model): __tablename__ = "users" id = db.Column(db.Integer, db.Sequence("id_sequence", increment=1), primary_key=True)
cx_oracle
pip install cx_oracle
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"
cesi/models.py
cx_oracle
Download oracle instantclient