

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Turso
incomplete
2: Migrations
incomplete
3: Migrate Automatically
incomplete
4: Using the DB
incomplete
5: CI/CD Review
incomplete
This lesson's interactive features are locked, please to keep using them
Turso is a cloud provider that specializes in hosting serverless SQLite-like databases (technically it's their fork, libsql). It's a great fit for Notely because it has a very generous free tier, and it's easy to use.
notely-dbHere's the full quickstart guide in the Turso docs, but in a nutshell:
# macOS
brew install tursodatabase/tap/turso
# Linux / WSL
curl -sSfL https://get.tur.so/install.sh | bash
Note that you may need to restart your shell to make sure the changes have taken effect.
turso auth login
turso db list
turso db shell notely-db
SELECT sqlite_version();
CREATE TABLE test (
id INT,
name TEXT
);
SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;
DROP TABLE test;
This SQL shell is a great way to manually interact with your database for debugging purposes, but our server will of course interact with it programmatically.
Run and submit the CLI tests from the root of your repo.