Skip to content

Commit

Permalink
chore: prepare for initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 19, 2023
1 parent 61188b4 commit 459c055
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": ["eslint-config-unjs"],
"rules": {
"unicorn/expiring-todo-comments": 0
"unicorn/expiring-todo-comments": 0,
"@typescript-eslint/no-non-null-assertion": 0
}
}
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# db0
# DB0

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
Expand All @@ -8,15 +8,9 @@

<!--[![Github Actions][github-actions-src]][github-actions-href]-->

db0 provides an easy way to connect and query sql databases providers with a [tiny core](https://bundlephobia.com/package/db0).
DB0 provides an easy interface to connect and query sql databases providers with a tiny core!

<!-- 👉 [Documentation](https://db0.unjs.io) -->

## Features

- Designed for all environments: Browser, NodeJS, and Workers
- Well tested built-in connectors
- Asynchronous API
👉 Read [Documentation](https://db0.unjs.io)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "db0",
"version": "0.1.0",
"description": "",
"description": "Lightweight SQL Connector",
"repository": "unjs/db0",
"license": "MIT",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/postgresql.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Client, ClientConfig, Query } from "pg";
import { Client, ClientConfig } from "pg";

import type { Connector, Statement } from "../types";

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export * from "./types";
export const connectors = {
sqlite: "db0/connectors/better-sqlite3",
postgresql: "db0/connectors/postgresql",
"cloudflare-d1": "db0/connectors/cloudflare-d1",
} as const;

export type ConnectorName = keyof typeof connectors;

0 comments on commit 459c055

Please sign in to comment.