vite-plugin-db
Advanced tools
+2
-2
| { | ||
| "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": { |
+11
-3
@@ -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 @@ |
21106
2.54%120
7.14%+ Added
- Removed
Updated