No Database
Best for static sites
Hiveku Database
PostgreSQL, managed for you
Bring Your Own
Use Supabase, Neon, etc.
Option 1: No Database
If your site is marketing pages, a blog, or portfolio — you probably don’t need a database. Pick this during project creation and skip the rest. You can always add one later from Settings > Database.Option 2: Hiveku Database (Managed PostgreSQL)
We provision and manage a PostgreSQL instance for your project.Enable during project creation
When creating a new project, pick Hiveku Database in the database step.Already have a project? Go to Settings > Database and click Provision Database.
Option 3: Bring Your Own Database (BYOD)
If you already use Supabase, Neon, PlanetScale, Railway, or any PostgreSQL-compatible provider, paste the connection string.Paste into Hiveku
Go to Settings > Database and select Bring Your Own. Paste the connection string and save.
BYOD means you manage your own backups, scaling, and billing on the provider side. Hiveku just connects.
Using the Database in Code
Once a database is connected,DATABASE_URL is available as an env var.
- Prisma
- Drizzle
- Plain pg
The SQL Editor
Run queries directly from the browser.Pick SQL Editor
The editor is a full-featured Postgres console — autocomplete, history, and query saving.
Let the AI Create Tables
The fastest way to set up schema is to ask.Backups
- Automatic
- Manual
- Checkpoints
Hiveku Database takes daily automatic backups with a rolling retention window. View and restore from Settings > Database > Backups.
Connection Pooling
For serverless deploys, always use a pooler to avoid exhausting connection limits. Add pooling params to your connection string:connection_limit=15— max concurrent connections per instancepool_timeout=30— seconds to wait for a connection before erroring
Verifying Setup
RunSELECT 1; in the SQL Editor. If you get 1 back, the database is connected and your app can reach it.
Then in your app, add a simple query (SELECT NOW()) behind a route like /api/db-test and visit it in the browser.
Troubleshooting
Connection failed
Connection failed
Check that
DATABASE_URL exists in Settings > Environment. For BYOD, confirm the string you pasted matches your provider’s dashboard exactly — copy-paste errors are the most common cause.Pool exhaustion errors
Pool exhaustion errors
Your app is opening more connections than the pool allows. Raise
connection_limit in the connection string, or use a connection pooler like PgBouncer (Supabase and Neon both offer pooler URLs — use those instead of the direct URL).'Too many connections' from Postgres
'Too many connections' from Postgres
Each serverless invocation opens a new connection by default. Switch to a pooler connection string, or make sure you’re reusing a single
Pool instance across requests rather than creating a new one each time.BYOD provider blocks Hiveku
BYOD provider blocks Hiveku
Some providers have IP allowlists. Check your provider’s networking settings and ensure outbound connections from Hiveku are allowed, or use “allow from anywhere” if your provider supports it.
I ran the wrong DROP TABLE
I ran the wrong DROP TABLE
Restore from the most recent backup or checkpoint in Settings > Database > Backups. This is exactly what backups are for.
What’s Next?
Environment Variables
Manage secrets and config
Build with AI
Let the AI design your schema