An AI-native data access SDK currently at version 0.0.1 that abstracts common database operations across MongoDB, PostgreSQL, and SQLite. It leverages AI to automate schema inference, query generation, and data transformation. Designed for rapid prototyping and integration with AI agents, it prioritizes simplicity over raw performance, distinguishing itself from traditional ORMs by reducing boilerplate through natural language-like commands. Released weekly with breaking changes expected before 1.0.
npm install database.doVerified import paths — ran on the pinned version, not inferred.
Connects to a PostgreSQL database using environment variable for URI, runs a parameterized query, and closes the connection.
Use `new Database({...})` instead of `createDatabase({...})`.Install `mongodb` separately: `npm install mongodb`.
Use `import { query } from 'database.do'` and pass `db` as first argument.Switch to ESM or use dynamic `import('database.do')`.Update tsconfig.json: `"moduleResolution": "node16"`.
Change to `import { Database } from 'database.do'`.Set `"moduleResolution": "node16"` in tsconfig.json.
Add `type: 'postgres' | 'mongodb' | 'sqlite'` to the options object.
Run `npm install pg`.