Sling Academy
Home/Node.js/Page 34

Node.js

Node.js is a JavaScript runtime that allows for server-side scripting, enabling the development of scalable network applications using a non-blocking, event-driven architecture.

How to Select Records Between Two Dates in Sequelize

Updated: Dec 29, 2023
Introduction Sequelize is a powerful Object-Relational Mapping (ORM) library for Node.js. It provides a high-level abstraction for dealing with databases in a Node.js environment. One of the common tasks when working with databases is......

Mastering the LIKE Condition in Sequelize.js

Updated: Dec 29, 2023
Introduction The LIKE condition in Sequelize is a powerful tool for pattern matching in queries when using SQL-based databases with Sequelize, an Object-Relational Mapper (ORM) for Node.js. This tutorial aims to guide you through using......

Filtering by Multiple Conditions in Sequelize

Updated: Dec 29, 2023
Overview Sequelize is a popular Node.js ORM for managing relational databases. It provides a rich set of tools for building dynamic queries using JavaScript. This tutorial will guide you through different ways to filter queries using......

Best Practices to Name Tables and Columns in Sequelize

Updated: Dec 29, 2023
Introduction Sequelize is a popular ORM for Node.js applications that work with relational databases. It plays a crucial role in how we interact with the database by abstracting SQL queries. A significant aspect of this abstraction is......

Transactions in Sequelize.js: A Complete Guide

Updated: Dec 29, 2023
Introduction Sequelize is a popular Node.js ORM for managing relational databases like PostgreSQL, MySQL, MariaDB, SQLite, and MSSQL. One of its powerful features is the ability to handle transactions. Transactions are crucial in......

How to add constraints to a column in Sequelize

Updated: Dec 29, 2023
In this tutorial, we delve into the fundamentals and intricacies of adding constraints to database columns using the Sequelize ORM (Object-Relational Mapping) within a Node.js application. Constraints are a key aspect of relational......

A Deep Dive into Sequelize’s Timestamps

Updated: Dec 29, 2023
Overview In ORM packages like Sequelize, timestamps play a crucial role in tracking when database records are created and updated. Sequelize provides built-in features that automatically manage these timestamps, ensuring an additional......

How to Set Default Values in Sequelize.js (3 Ways)

Updated: Dec 29, 2023
Learn some different ways to set default values in Sequelize.js and Node.js. Solution 1: Model Definition Defaults Define default values directly within the model’s attributes during its definition. This is the most......

Working with Paranoid Tables in Sequelize

Updated: Dec 29, 2023
Introduction In this tutorial, we will explore the concept of paranoid tables in Sequelize and how to work with them. Paranoid tables allow you to keep records in the database even after they have been deleted, marking them with a......

Replication in Sequelize: A complete guide

Updated: Dec 29, 2023
Overview Replication is a technique that ensures the continuity and efficiency of a database by allowing data from one database server (master) to be replicated to one or more databases (slaves). This guide focuses on implementing......

Sequelize.js: How to Update a Row Without Touching the Timestamps

Updated: Dec 29, 2023
An essential feature of modern databases is the ability to track when a record gets updated automatically. This feature is facilitated through timestamps, which Sequelize.js manages efficiently. However, there are cases where you might......

How to Convert Entity to Plain Object in Sequelize.js

Updated: Dec 29, 2023
Overview Sequelize is one of the most popular ORMs for relational databases with Node.js. It abstracts database access and enables developers to interact with various SQL databases with ease. Sometimes, while working with Sequelize, we......