Database

Lucid

9 Series
116 Lessons
33h 13m

Lucid is AdonisJS' Object Relational Mapping (ORM). It's a first-party package that follows the active record pattern. With it you can easily perform CRUD operations, add database hooks, normalize data, and so much more.

Lessons.

AdonisJS Model Query Builder Macro Favorites
AdonisJS Quick Tip #16.0
・
Mar 12, 23

Exploring My Favorite AdonisJS Model Query Builder Macros: Tips and Examples

In this lesson, I'll highlight a few of my favorite Model Query Builder Macros that I carry with me from project to project. Have a favorite of your own? Let me know in the comments!

Static Model Query Methods
Let's Learn AdonisJS 5 #5.9
・
Mar 09, 23

Easy Querying with Static Model Query Methods

In this lesson, we'll learn what static methods are available on our Lucid Models to help us easily query records from our database. These methods offer a convenient query option compared to the query builder.

Model Hook Overview
Let's Learn AdonisJS 5 #5.8
・
Mar 01, 23

Password Hashing & Model Hook Overview

In this lesson, we'll learn briefly about the model hooks available and how they work. Then, we'll walk through an example by hashing our password anytime it is changed.

AdonisJS Creating Records
Let's Learn AdonisJS 5 #5.7
・
Feb 02, 23

Creating Records with Lucid ORM

In this lesson, we'll learn various ways we can create and bulk-create records using the AdonisJS Lucid ORM.

AdonisJS Model Relationships
Let's Learn AdonisJS 5 #5.6
・
Jan 27, 23

Defining Model Relationships

In this lesson, we'll learn how to define relationships on our Lucid Models. We'll cover one-to-one, many-to-one, one-to-many, and many-to-many relationship definitions.

Default Team
Let's Build A Changelog App #4.0
・
Jan 07, 23

Creating Teams & Setting Default Team

In this stream, we'll be adding the ability to create new teams, set the default team for a user when they switch between teams, and auto-forward users to their default team after login.

Migration to Model
Let's Learn AdonisJS 5 #5.5
・
Jan 05, 23

Database Migrations To Lucid Models

In this lesson, we'll walk through examples of transferring our database migrations into our Lucid Models. This will pave the way for us to begin CRUD operations in later lessons.

Schema to Migration
Let's Learn AdonisJS 5 #5.4
・
Dec 29, 22

Database Schema to Migration

In this lesson, we'll walk through a real-world example of a database schema and how to create migrations. We'll define each table's columns, primary keys, and foreign keys.

What is a model?
Let's Learn AdonisJS 5 #5.3
・
Dec 22, 22

What Is A Model?

In this lesson, we'll delve into AdonisJS Models learning what they are, what they represent, how to create them, what we can do with them, and more.

Altering Database Tables with Migrations
Let's Learn AdonisJS 5 #5.2
・
Nov 17, 22

What To Know Before Altering Your Database with Migrations

In this lesson, we'll discuss two different flows you can use to alter your database. One, when working completely locally and another when a migration has already been executed on your production database.

AdonisJS Migrations & Their Flow
Let's Learn AdonisJS 5 #5.1
・
Oct 30, 22

Migrations & Understanding the Flow of Migrations

In this lesson, we'll learn all about migrations, what they are, how they're used, and how they're tracked. We'll also learn about the flow of migrations and how they work similarly to a timeline.

Introducing the Lucid ORM
Let's Learn AdonisJS 5 #5.0
・
Aug 31, 22

Introducing, Installing, and Configuring Lucid ORM

In this lesson, we'll learn about Lucid ORM; its capabilities, Ace CLI commands, and the difference between it and the Database module. We'll then install and configure it within our project.

AdonisJS In 30 #2.0
・
Aug 13, 22

How To Do Multi Model Authentication with AdonisJS and Lucid ORM

In this lesson, we'll learn how to set up multi-model authentication using a User and Admin model with AdonisJS and Lucid ORM.

Let's Build with AdonisJS #1.9
・
May 20, 22

Comment Likes & Unlikes

In this stream, we'll be adding the ability to like and unlike a comment on the new upcoming Jagr.Co site, built with AdonisJS.

AdonisJS Quick Tip #7.0
・
Mar 05, 22

How To Add A Custom Method to the Model Query Builder in AdonisJS

In this lesson, we'll learn how to define a macro for the Model Query Builder within an AdonisJS project to provide a new method onto all our Model's Query Builder.

Let's Build with AdonisJS #1.6
・
Jan 29, 22

Building A Comment System

In this stream, we focused on building a comment system that allowed infinitely nestable responses. It's all done server-side too, so it's SEO friendly!

AdonisJS Quick Tip #5.0
・
Jan 16, 22

How To Serialize All AdonisJS Lucid Model Properties As Camel Case

In this lesson, we'll learn how to use Naming Strategies in AdonisJS to alter the serialization behavior for all our model properties from snake case to camel case.

AdonisJS In 30 #1.0
・
Dec 12, 21

AdonisJS Authentication in 15 Minutes

We'll be creating a new AdonisJS project and adding authentication to it within 15 minutes. You'll be able to logout, register, and login with either your username or email.

Let's Build with AdonisJS #1.5
・
Nov 27, 21

Rebuilding Jagr.Co, Adding Posts & SubCollections to Collections

In this stream, we focus on adding the ability to add posts and subcollections to a collection.

Let's Build with AdonisJS #1.4
・
Nov 26, 21

Rebuilding Jagr.Co, Post, Collection, & Taxonomy Models

In this stream, we focus on setting up the models and migrations for the Collection and Taxonomy models and tables. We set up their relationships and get the Collection CRUD operations setup

Showing 81 to 100 of 113 results