Best practices for loading SQLite extensions with Effect Typescript library

const clientLive = SqliteClient.layer({
  filename: dbPath,
})

const MigratorLive = SqliteMigrator.layer({
  loader: SqliteMigrator.fromFileSystem(
    path.resolve(import.meta.dirname, '../', 'migrations'),
  ),
}).pipe(Layer.provide(BunContext.layer))

Now I am learning to initialize my sqlite client with effect-app.But now I need to loadExtension, are there any best practices?
Was this page helpful?