How to Use Singular Table Names in Sequelize.js
Updated: Dec 29, 2023
Introduction Sequelize.js is a robust ORM (Object-Relational Mapping) library for Node.js. By default, Sequelize pluralizes table names, assuming that each model will be associated with a table that holds multiple entries or records.......
How to Filter by Date in Sequelize.js
Updated: Dec 29, 2023
Introduction Sequelize is a robust ORM (Object-Relational Mapping) library for Node.js, which facilitates the management of relational databases. One common requirement when dealing with databases is to filter data by dates. This......
How to Setup Sequelize in Node.js
Updated: Dec 29, 2023
Introduction Sequelize is a powerful Object-Relational Mapping (ORM) library for Node.js that allows developers to work with relational databases like MySQL, PostgreSQL, SQLite, and MSSQL in an asynchronous, promise-based manner. In......
createdAt and updatedAt fields in Sequelize.js
Updated: Dec 29, 2023
Overview Sequelize, an ORM (Object-Relational Mapper) for Node.js, facilitates the management of database operations using JavaScript. In this tutorial, we delve into the automatic timestamp attributes createdAt and updatedAt,......
Dates, Timestamps, and Timespans in Sequelize.js
Updated: Dec 29, 2023
Introduction Sequelize is a powerful Node.js ORM for relational databases such as PostgreSQL, MySQL, MariaDB, SQLite, and MSSQL. It provides straightforward methods for managing dates, timestamps, and timespans, crucial for......
Sequelize.js: Create a table with auto incrementing id (JavaScript & TypeScript examples)
Updated: Dec 29, 2023
Introduction Sequelize.js is a popular Node.js ORM (Object-Relational Mapping) library that allows developers to interact with relational databases using JavaScript or TypeScript. It provides a high-level abstraction for database......
Sequelize.js: How to Delete a Column from an Existing Table
Updated: Dec 29, 2023
Introduction Sequelize is a popular Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It is robust and easy to use, providing a wealth of features that make working with relational databases more manageable.......
Sequelize.js: How to add a column to an existing table
Updated: Dec 29, 2023
In modern web development, database migrations are a vital part of the application’s lifecycle. Sequelize.js, a robust Node.js ORM (Object-Relational Mapping) for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server, provides......
Sequelize.js: How to Rename a Column
Updated: Dec 29, 2023
Overview Sequelize is a powerful ORM for Node.js applications that allows developers to handle various database tasks with ease. Among its many capabilities, Sequelize enables the modification of existing database schemas, including......
Is it Possible to Use Sequelize.js with MongoDB?
Updated: Dec 29, 2023
Introduction Sequelize is a popular promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication, and more.......
Sequelize.js: How to Rename a Table
Updated: Dec 29, 2023
Introduction Sequelize is a powerful, promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features robust transaction support, relations, eager and lazy loading, read replication and more.......
Sequelize.js: How to Alter/Change a Table
Updated: Dec 29, 2023
Introduction Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more. Altering or......