Official plugins
Relational databases
Connect your favorite relational DBMS to your SvelteKit application
Installation
List of officially supported DBMS
Usage
You’re likely not going to use this plugin directly, as this is just a connection between other plugins.
This is one of the plugins that allow injection by other plugins, so you can depend on it in your plugin and extend it.
Extend the plugin
Here’s an example from the D1 plugin:
src/lib/index.ts
Methods
query
Queries the database.
Parameters: query: string
, ...params: unknown[]
Returns: Promise<Record<string, unknown>[]>