| 39 | * ``` |
| 40 | */ |
| 41 | export 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 | |
| 83 | class DummyConnection implements DatabaseConnection { |
| 84 | async executeQuery<R>(): Promise<QueryResult<R>> { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…