Chromia
Start Building

01 / 08

Mastering Rell

This masterclass goes deep into the core ideas behind Rell. Because Rell is grounded in SQL, you write more efficient code once you understand how each Rell entity maps onto an SQL table.

You begin by declaring entities and the relationships between them. Next, you see how those declarations become SQL statements and concrete tables in the database.

After that, you learn to build joins in Rell. Hands-on examples, many based on NFT models, show how to make your queries faster.

Want to see exactly what Rell sends to the database? Pass the --sql-log flag to commands like chr test, chr repl, or chr node start.

The course draws on the documentation listed below. Consult it whenever you want more background on a concept or technique:

SectionTypeDocumentation
RellEntityEntity
CLIInstallationInstall CLI
CLICommandsCLI Commands
RellLanguage featuresOperations
RellLanguage featuresInner Join
RellLanguage featuresStruct
RellLanguage featuresQuery
RellLanguage featuresEnum
RellLanguage featuresFunction

You can find all of the course code in the Rell masterclass repository.

Written for this site from Chromia’s public course. Code samples are the course’s own.