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 ## Installation
```ts ```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: // ...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 ## Documentation

View File

@ -1,5 +1,5 @@
{ {
"name": "@luaneko/pglue", "name": "@luaneko/pglue",
"version": "0.3.1", "version": "0.3.2",
"exports": "./mod.ts" "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"; import { Pool, PoolOptions, Wire, WireOptions } from "./wire.ts";
export { export {
Wire,
WireOptions,
WireError, WireError,
PostgresError, PostgresError,
Pool,
PoolOptions,
type WireEvents,
type PoolEvents,
type LogLevel, type LogLevel,
type Parameters,
type Transaction, type Transaction,
type Channel, type Channel,
type Parameters, type ChannelEvents,
type NotificationHandler,
} from "./wire.ts"; } from "./wire.ts";
export { export {
type SqlFragment, type SqlFragment,
@ -16,6 +24,8 @@ export {
type SqlTypeMap, type SqlTypeMap,
SqlTypeError, SqlTypeError,
sql, sql,
sql_types,
sql_format,
is_sql, is_sql,
Query, Query,
type Result, type Result,