Skip to content

Commit c832953

Browse files
committed
create a crud api with sqlx, mysql, rust, and actix-web
0 parents  commit c832953

12 files changed

+2947
-0
lines changed

.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MYSQL_DATABASE=rust_sqlx
2+
MYSQL_USER=admin
3+
MYSQL_PASSWORD=password123
4+
MYSQL_ROOT_PASSWORD=password123
5+
6+
# Don't worry about the placeholders. Rust supports this feature.
7+
DATABASE_URL=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@localhost:6500/${MYSQL_DATABASE}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

0 commit comments

Comments
 (0)