* Create a new WAL file instance. * @param options - Configuration options
(options: { file: string; codec: Codec<T> })
| 156 | * @param options - Configuration options |
| 157 | */ |
| 158 | constructor(options: { file: string; codec: Codec<T> }) { |
| 159 | this.#file = options.file; |
| 160 | const c = createTolerantCodec(options.codec); |
| 161 | this.#decode = c.decode; |
| 162 | this.#encode = c.encode; |
| 163 | } |
| 164 | |
| 165 | /** Get the file path for this WAL */ |
| 166 | getPath = () => this.#file; |
nothing calls this directly
no test coverage detected