Skip to content

Commit f4f926c

Browse files
committed
feat: rename createBridge to createPostgresBridge
1 parent 5a3ac0d commit f4f926c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Wraps [`postgres`](https://www.npmjs.com/package/postgres) API in a [`pg`](https
99

1010
```ts
1111
import postgres from 'postgres';
12-
import { createBridge } from 'postgres-bridge';
12+
import { createPostgresBridge } from 'postgres-bridge';
1313

14-
const PostgresBridge = createBridge(postgres);
14+
const PostgresBridge = createPostgresBridge(postgres);
1515

1616
// pg.Pool Configuration
1717
const configuration = {

src/bridge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export type BridgetClient = {
7171
release: () => Promise<void>,
7272
};
7373

74-
export const createBridge = (postgres: typeof Postgres) => {
74+
export const createPostgresBridge = (postgres: typeof Postgres) => {
7575
return class PostgresBridge {
7676
public readonly poolEvents: EventEmitter;
7777

test/postgres-bridge/bridge.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66
import postgres from 'postgres';
77
import * as sinon from 'sinon';
88
import {
9-
createBridge,
9+
createPostgresBridge,
1010
} from '../../src/bridge';
1111

12-
const PostgresBridge = createBridge(postgres);
12+
const PostgresBridge = createPostgresBridge(postgres);
1313

1414
const clients = [
1515
{

0 commit comments

Comments
 (0)