Back to Blog
Nodejs mysql6/7/2023 The initialize() function is executed once on API startup and performs the following actions: The DB wrapper uses mysql2 directly to connect to MySQL and create the database if it doesn't exist. MySQL2 is the MySQL connector library used by Sequelize to connect to the MySQL db server. It exports an object that exposes all of the database models for the application (currently only User), and provides an easy way to access any part of the database from a single point. The MySQL database wrapper connects to MySQL using Sequelize & the mysql2 library.
0 Comments
Read More
Leave a Reply. |