Skip to content

Commit cb00051

Browse files
Minor tweak
1 parent abe4552 commit cb00051

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

_posts/2026-01-12-make-the-change-easy.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ I decided to implement an Adapter with a shared interface. Like this, for exampl
5050
```typescript
5151
export type DatabaseProviderName = "sqlite" | "postgres";
5252

53-
5453
export interface DbAdapter {
5554
query<T = unknown>(sql: string, params?: unknown[]): Promise<T[]>;
5655
queryOne<T = unknown>(sql: string, params?: unknown[]): Promise<T | null>;
@@ -85,13 +84,8 @@ export class SqliteAdapter implements DbAdapter {
8584
// Initialization helpers
8685
// removed for brevity
8786
// ------------------------
88-
private ensureDatabaseDirectory() {
89-
// code
90-
}
91-
92-
private ensureSchema() {
93-
// more code
94-
}
87+
private ensureDatabaseDirectory() { /*...*/ }
88+
private ensureSchema() { /*...*/ }
9589

9690
// ------------------------
9791
// DbAdapter implementation

0 commit comments

Comments
 (0)