Neon Serverless Postgres — Ship faster (original) (raw)

The database developers trust, on a serverless platform designed to help you build reliable and scalable applications faster.

import { neon } from '@neondatabase/serverless';

export async function GET() {
    const sql = neon(process.env.DATABASE_URL);

    const rows = await sql("SELECT * FROM posts");

    return Response.json({ rows })
}

Lightning fast. Edge ready.

import { neon } from '@neondatabase/ serverless';const sql = neon('postgresql:// usr:pass@proj.us-east-2.aws.neon.tech/db');const posts = await sql('SELECT * FROM posts');

Get the Serverless Driver

ReliableScalabilityHigh compatibilityBlazingly fast searchWorks with PGVECTORWorks with langchain;

Use the Neon API to deploy database-per-tenant architectures. Scale to fleets of thousands of databases without touching a server. Rest easy knowing scale to zero keeps costs low.

Trusted Postgres