MCPcopy
hub / github.com/kysely-org/kysely / DummyDriver

Class DummyDriver

src/driver/dummy-driver.ts:41–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 * ```
40 */
41export class DummyDriver implements Driver {
42 async init(): Promise<void> {
43 // Nothing to do here.
44 }
45
46 async acquireConnection(): Promise<DatabaseConnection> {
47 return new DummyConnection()
48 }
49
50 async beginTransaction(): Promise<void> {
51 // Nothing to do here.
52 }
53
54 async commitTransaction(): Promise<void> {
55 // Nothing to do here.
56 }
57
58 async rollbackTransaction(): Promise<void> {
59 // Nothing to do here.
60 }
61
62 async releaseConnection(): Promise<void> {
63 // Nothing to do here.
64 }
65
66 async destroy(): Promise<void> {
67 // Nothing to do here.
68 }
69
70 async releaseSavepoint(): Promise<void> {
71 // Nothing to do here.
72 }
73
74 async rollbackToSavepoint(): Promise<void> {
75 // Nothing to do here.
76 }
77
78 async savepoint(): Promise<void> {
79 // Nothing to do here.
80 }
81}
82
83class DummyConnection implements DatabaseConnection {
84 async executeQuery<R>(): Promise<QueryResult<R>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…