All files / src index.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46                      1x           1x     1x 1x           1x   1x                             1x  
/**
 * pgrls-test — Code-first RLS testing for Postgres.
 *
 * TypeScript port of `pgrls.testing` (Python). Implements the
 * cross-language Layer 1 protocol documented at
 * `docs/pgrls-test-protocol.md` in the source repo.
 *
 * Subsequent commits add `PgrlsTestClient` and assertions; this
 * module re-exports the public surface as it grows.
 */
 
export {
  PgrlsTestAssertionError,
  PgrlsTestConfigError,
  PgrlsTestError,
} from './errors.js';
 
export { quoteIdent, quoteQualified, RESERVED_KEYWORDS } from './idents.js';
 
export type { Driver, QueryResult } from './drivers/types.js';
export { pgDriver, type PgQueryable } from './drivers/pg.js';
export {
  postgresJsDriver,
  type PostgresJsResult,
  type PostgresJsSql,
} from './drivers/postgres-js.js';
 
export { PgrlsTestClient, type AsRoleOptions } from './client.js';
 
export {
  assertInvisible,
  assertRejected,
  assertRows,
  assertSilentlyDropped,
  assertVisible,
} from './assertions.js';
 
/**
 * The version of the cross-language Layer 1 contract this
 * client implements. Bumped only when the wire-level sequence
 * (SQL emitted, GUC names used, savepoint convention) changes
 * in a non-additive way. See `docs/pgrls-test-protocol.md` for
 * the contract itself.
 */
export const PROTOCOL_VERSION = 1 as const;