docs: rewrite database integration guide around modern drivers and best practices - #2477
Open
bjohansebas wants to merge 2 commits into
Open
docs: rewrite database integration guide around modern drivers and best practices#2477bjohansebas wants to merge 2 commits into
bjohansebas wants to merge 2 commits into
Conversation
…st practices Replace the outdated per-database driver catalog (deprecated packages, callback-era APIs) with a single modern example using node:sqlite in cjs, mjs, and ts variants, links to the official docs of other popular drivers, an overview of ORMs and query builders, and a best practices section covering connection pooling, parameterized queries, credentials, error handling, request cancellation with req.signal, and graceful shutdown.
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
crandmck
requested changes
Aug 3, 2026
crandmck
left a comment
Member
There was a problem hiding this comment.
Small wording suggestion. Also, it looks like link checking CI is failing.
|
|
||
| import Alert from '@components/primitives/Alert/Alert.astro'; | ||
| import PackageManagerCommand from '@components/patterns/PackageManagerCommand/PackageManagerCommand.astro'; | ||
| Express doesn't include database support out of the box, and it doesn't need to. Connecting a database to an Express app is just a matter of loading an appropriate Node.js driver or ORM in your app. This page shows the general pattern using SQLite as an example, points you to the official documentation for other popular databases, and covers a few practices that apply no matter which database you choose. |
Member
There was a problem hiding this comment.
Suggested change
| Express doesn't include database support out of the box, and it doesn't need to. Connecting a database to an Express app is just a matter of loading an appropriate Node.js driver or ORM in your app. This page shows the general pattern using SQLite as an example, points you to the official documentation for other popular databases, and covers a few practices that apply no matter which database you choose. | |
| To connect a database to an Express app simply load the desired Node.js driver or ORM in your app. The general pattern is shown below using SQLite as an example. | |
| There are also a few [best practices ](#best-practices) to follow, regardless of the database you're using. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Replace the outdated per-database driver catalog (deprecated packages, callback-era APIs) with a single modern example using node:sqlite in cjs, mjs, and ts variants, links to the official docs of other popular drivers, an overview of ORMs and query builders, and a best practices section covering connection pooling, parameterized queries, credentials, error handling, request cancellation with req.signal, and graceful shutdown.