(ctx context.Context)
| 21 | } |
| 22 | |
| 23 | func MakeOldDB(ctx context.Context) (*sqlx.DB, error) { |
| 24 | dbName := GetOldDBName() |
| 25 | rtn, err := sqlx.Open("sqlite3", fmt.Sprintf("file:%s?mode=ro&_busy_timeout=5000", dbName)) |
| 26 | if err != nil { |
| 27 | return nil, err |
| 28 | } |
| 29 | rtn.DB.SetMaxOpenConns(1) |
| 30 | return rtn, nil |
| 31 | } |
| 32 | |
| 33 | type OldHistoryType struct { |
| 34 | HistoryId string |
no test coverage detected