mirror of
https://github.com/nalgeon/redka.git
synced 2025-10-05 07:56:49 +08:00
postgres backend (#48)
This commit is contained in:
@@ -3,15 +3,12 @@ package string
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nalgeon/redka"
|
||||
"github.com/nalgeon/redka/internal/redis"
|
||||
"github.com/nalgeon/redka/internal/testx"
|
||||
)
|
||||
|
||||
func getDB(tb testing.TB) (*redka.DB, redis.Redka) {
|
||||
func getRedka(tb testing.TB) redis.Redka {
|
||||
tb.Helper()
|
||||
db, err := redka.Open("file:/data.db?vfs=memdb", nil)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
}
|
||||
return db, redis.RedkaDB(db)
|
||||
db := testx.OpenDB(tb)
|
||||
return redis.RedkaDB(db)
|
||||
}
|
||||
|
Reference in New Issue
Block a user