MCPcopy
hub / github.com/electric-sql/pglite / DatabaseError

Class DatabaseError

packages/pg-protocol/src/messages.ts:147–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147export class DatabaseError extends Error implements NoticeOrError {
148 public severity: string | undefined
149 public code: string | undefined
150 public detail: string | undefined
151 public hint: string | undefined
152 public position: string | undefined
153 public internalPosition: string | undefined
154 public internalQuery: string | undefined
155 public where: string | undefined
156 public schema: string | undefined
157 public table: string | undefined
158 public column: string | undefined
159 public dataType: string | undefined
160 public constraint: string | undefined
161 public file: string | undefined
162 public line: string | undefined
163 public routine: string | undefined
164 constructor(
165 message: string,
166 public readonly length: number,
167 public readonly name: MessageName,
168 ) {
169 super(message)
170 }
171}
172
173export class CopyDataMessage implements BackendMessage {
174 public readonly name = 'copyData'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected