Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

vite-plugin-db

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-db - npm Package Compare versions

Comparing version
0.4.5
to
0.5.0
+2
-2
package.json
{
"name": "vite-plugin-db",
"version": "0.4.5",
"version": "0.5.0",
"keywords": [

@@ -35,3 +35,3 @@ "neon",

"@clack/prompts": "0.10.1",
"get-db": "0.10.0"
"get-db": "0.11.0"
},

@@ -38,0 +38,0 @@ "scripts": {

@@ -65,6 +65,14 @@ # vite-plugin-db

- The plugin writes both a direct connection string and a pooled connection string to your `.env`.
- It also provides a claim URL (valid for 7 days) to take ownership of the database with the configured `envPrefix` (defaults to `VITE_` for Vite projects).
- If `seed` is configured, the specified SQL script will be executed after database creation.
The plugin writes the following environment variables to your `.env`:
| Variable | Description |
| ---------------------------------- | ---------------------------------------------------------- |
| `DATABASE_URL` | The **pooler** connection string (default connection) |
| `DATABASE_URL_DIRECT` | The direct connection string |
| `{envPrefix}INSTAGRES_CLAIM_URL` | Claim URL (valid for 7 days) to take ownership of the DB |
> **Note:** The pooler connection is now the default for `DATABASE_URL` (as of the latest version). The pooler provides connection pooling and is recommended for most use cases, especially serverless environments.
If `seed` is configured, the specified SQL script will be executed after database creation.
## Type Definitions

@@ -71,0 +79,0 @@