Replies: 2 comments
-
You should be able to connect and SQL db just by putting in your specifics in the rxconfig.py, lmk if these don't work |
Beta Was this translation helpful? Give feedback.
-
Any database supported by SQLAlchemy can be used with reflex. Examples from their docs. To run a reflex app against mysql database, the following code may be used. Run the database serverThe following in an insecure example 😉 docker run -it -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=reflex mysql Export the DB connection stringThe export DB_URL=mysql+pymysql://root:secret@localhost/reflex Install database driverNote that reflex does not include database drivers by default, you must install the appropriate driver yourself. pip install pymysql cryptography Create schemaUsing reflex db migrate Run the Appreflex run |
Beta Was this translation helpful? Give feedback.
-
On top of PostGre and sqlite, it would be nice
Beta Was this translation helpful? Give feedback.
All reactions