Mayank Agarwal has Published 403 Answers

Creating a MySQL Table in NodeJS using Sequelize

Mayank Agarwal

Mayank Agarwal

Updated on 27-Apr-2021 09:15:06

Introduction to SequelizeSequealize follows the promise-based Node.js ORM for different servers like – Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server.Following are some of the main features of NodeJS sequelize −Transaction SupportRelationsEager and Lazy LoadingRead Replication and more...Connecting to MySQL using SequelizeWe need to establish a connection between MySQL and ... Read More

Connecting MongoDB with NodeJS

Mayank Agarwal

Mayank Agarwal

Updated on 27-Apr-2021 09:11:43

Introduction to mongodb.connectThis method is used to connect the Mongo DB server with our Node application. This is an asynchronous method from MongoDB module.Syntaxmongodb.connect(path[, callback])Parameters•path – The server path where the MongoDB server is actually running along with its port.•callback – This function will give a callback if any error ... Read More

Async Copy in fs-extra - NodeJS

Mayank Agarwal

Mayank Agarwal

Updated on 27-Apr-2021 09:08:43

Introduction to Async copyThis method copies files or directories from one location to another location. The directory can have sub-directories and files.Syntaxcopy(src, dest[, options][, callback])Parameterssrc – This is a string paramter which will hold the source location of the file or directory that needs to be copies. If the location ... Read More

Advertisements