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 mysqlExport the DB connection stringThe export DB_URL=mysql+pymysql://root:secret@localhost/reflexInstall database driverNote that reflex does not include database drivers by default, you must install the appropriate driver yourself. pip install pymysql cryptographyCreate schemaUsing reflex db migrateRun the Appreflex run |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
On top of PostGre and sqlite, it would be nice
Beta Was this translation helpful? Give feedback.
All reactions