Export more things in mod.ts

This commit is contained in:
luaneko 2025-01-13 13:54:31 +11:00
parent 3d65dcecf2
commit 7f3e3b236b
Signed by: luaneko
GPG Key ID: 406809B8763FF07A
3 changed files with 14 additions and 4 deletions

View File

@ -14,9 +14,9 @@ The glue for TypeScript to PostgreSQL.
## Installation
```ts
import pglue from "https://git.lua.re/luaneko/pglue/raw/tag/v0.3.1/mod.ts";
import pglue from "https://git.lua.re/luaneko/pglue/raw/tag/v0.3.2/mod.ts";
// ...or from github:
import pglue from "https://raw.githubusercontent.com/luaneko/pglue/refs/tags/v0.3.1/mod.ts";
import pglue from "https://raw.githubusercontent.com/luaneko/pglue/refs/tags/v0.3.2/mod.ts";
```
## Documentation

View File

@ -1,5 +1,5 @@
{
"name": "@luaneko/pglue",
"version": "0.3.1",
"version": "0.3.2",
"exports": "./mod.ts"
}

12
mod.ts
View File

@ -3,12 +3,20 @@ import type * as v from "./valita.ts";
import { Pool, PoolOptions, Wire, WireOptions } from "./wire.ts";
export {
Wire,
WireOptions,
WireError,
PostgresError,
Pool,
PoolOptions,
type WireEvents,
type PoolEvents,
type LogLevel,
type Parameters,
type Transaction,
type Channel,
type Parameters,
type ChannelEvents,
type NotificationHandler,
} from "./wire.ts";
export {
type SqlFragment,
@ -16,6 +24,8 @@ export {
type SqlTypeMap,
SqlTypeError,
sql,
sql_types,
sql_format,
is_sql,
Query,
type Result,