perf: query data AS OF SYSTEM TIME (#5231)

Queries the data in the storage layser at the timestamp when the call hit the API layer
This commit is contained in:
Silvan
2023-02-27 22:36:43 +01:00
committed by GitHub
parent 80003939ad
commit e38abdcdf3
170 changed files with 3101 additions and 3169 deletions

View File

@@ -3,6 +3,7 @@ package dialect
import (
"database/sql"
"sync"
"time"
)
type Config struct {
@@ -29,10 +30,15 @@ type Matcher interface {
type Connector interface {
Connect(useAdmin bool) (*sql.DB, error)
Password() string
Database
}
type Database interface {
DatabaseName() string
Username() string
Password() string
Type() string
Timetravel(time.Duration) string
}
func Register(matcher Matcher, config Connector, isDefault bool) {