this is an example program to store array data in mysql using Foreign Key Realtionship between entity(Employee
) and array data table(Projects
).
-
create
emp_db
:create database emp_db;
-
run seaorm migrations. This will drop-create tables.
DATABASE_URL="mysql://root:password@localhost:3306/emp_db" sea-orm-cli migrate refresh
- compile program & run.
cargo run
TODO