Best practices for loading SQLite extensions with Effect Typescript library
Now I am learning to initialize my sqlite client with effect-app.But now I need to loadExtension, are there any best practices?
const clientLive = SqliteClient.layer({
filename: dbPath,
})
const MigratorLive = SqliteMigrator.layer({
loader: SqliteMigrator.fromFileSystem(
path.resolve(import.meta.dirname, '../', 'migrations'),
),
}).pipe(Layer.provide(BunContext.layer))