mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-20 21:14:04 +02:00
added split (sync and async) db connections pool
This commit is contained in:
1 parent
e964b019c2
commit
b9e257d2b1
13 files changed
+304
-127
No files matched your search
+5
-1
@@ -93,7 +93,11 @@ func NewTestApp(optTestDataDir ...string) (*TestApp, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
app := core.NewBaseApp(tempDir, "pb_test_env", false)
|
||||
app := core.NewBaseApp(&core.BaseAppConfig{
|
||||
DataDir: tempDir,
|
||||
EncryptionEnv: "pb_test_env",
|
||||
IsDebug: false,
|
||||
})
|
||||
|
||||
// load data dir and db connections
|
||||
if err := app.Bootstrap(); err != nil {
|
||||
|
||||
Reference in new issue
Block a user