From 7c21aefc9da0ecb778182c1c72ea67b19708e8d8 Mon Sep 17 00:00:00 2001 From: James Conlon Date: Wed, 6 Nov 2024 22:59:03 +0100 Subject: [PATCH] update paragraph on default database --- www/.astro/settings.json | 5 +++++ www/src/pages/en/usage/drizzle.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 www/.astro/settings.json diff --git a/www/.astro/settings.json b/www/.astro/settings.json new file mode 100644 index 0000000000..ee75d45167 --- /dev/null +++ b/www/.astro/settings.json @@ -0,0 +1,5 @@ +{ + "_variables": { + "lastUpdateCheck": 1730044581130 + } +} \ No newline at end of file diff --git a/www/src/pages/en/usage/drizzle.md b/www/src/pages/en/usage/drizzle.md index 1b22fc5ac7..57ef2f596f 100644 --- a/www/src/pages/en/usage/drizzle.md +++ b/www/src/pages/en/usage/drizzle.md @@ -5,7 +5,7 @@ layout: ../../../layouts/docs.astro lang: en --- -Drizzle is an ORM for TypeScript, that allows you to define your database schema and models in a `schema.ts` file, and then generate a type-safe client that can be used to interact with your database from your backend. +Drizzle is an ORM for TypeScript, that allows you to define your database schema and models in a `schema.ts` file. Using the drizzle client on the backend allows you to interact with your database while maintaining complete type safety. Drizzle is three major components @@ -31,7 +31,7 @@ When you select NextAuth.js in combination with Drizzle, the schema file is gene ## Default Database -The default database is an SQLite database, which is great for development and quickly spinning up a proof-of-concept but is not recommended for production. You can change the database to use by changing the `provider` in the `datasource` block to either `postgresql` or `mysql`, and then updating the connection string within environment variables to point to your database. +The default database is a local SQLite database, which is great for development and quickly spinning up a proof-of-concept. When you wish to move on to a production database it is as simple as updating the database connection string within environment variables and changing the drizzle driver to match. For detailed instructions see [vendors](#database-vendors). ## Commands