new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Drizzle · PostgreSQL · all subjects

aws data api

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

AWS Data API Postgres driver setup packages

To connect Drizzle ORM to PostgreSQL via AWS Data API, install drizzle-orm@rc, @aws-sdk/client-rds-data, and drizzle-kit@rc.

Import statement for AWS Data API Postgres driver

Import the Drizzle driver using: import { drizzle } from 'drizzle-orm/aws-data-api/pg';

AWS Data API minimal connection configuration

The drizzle() function requires three properties in the connection object: database, secretArn, and resourceArn. You can also specify any additional properties from the RDSDataClient type.

AWS Data API connection with inline configuration

Example of initializing Drizzle with AWS Data API using inline connection configuration: const db = drizzle({ connection: { database: process.env['DATABASE']!, secretArn: process.env['SECRET_ARN']!, resourceArn: process.env['RESOURCE_ARN']! }});

AWS Data API connection with existing RDSDataClient

Example of initializing Drizzle with an existing RDSDataClient instance: import { RDSDataClient } from '@aws-sdk/client-rds-data'; const rdsClient = new RDSDataClient({ region: 'us-east-1' }); const db = drizzle({ client: rdsClient, database: process.env['DATABASE']!, secretArn: process.env['SECRET_ARN']!, resourceArn: process.env['RESOURCE_ARN']! });

AWS Data API driver configuration

When using driver: "aws-data-api" with PostgreSQL, dbCredentials requires three properties: database (string), resourceArn (string), and secretArn (string). These are specific to AWS Data API connections and replace the standard URL or connection parameters.

Give your agent this brain