mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-08 11:10:27 +01:00
Switcjhed cases in SQLite backend for handling interleaved and non-interleaved.
This commit is contained in:
parent
5094f05414
commit
a0bdf95f95
|
@ -95,11 +95,11 @@ func NewSqliteBackend(path string, interleaved bool) (sqlb *SqliteBackend, err e
|
|||
}
|
||||
|
||||
if interleaved {
|
||||
res.encoder = common.EncodeStringToBytes
|
||||
res.decoder = common.DecodeStringFromBytes
|
||||
} else {
|
||||
res.encoder = common.EncodeStringToBytesFromInterleaved
|
||||
res.decoder = common.DecodeStringFromBytesToInterleaved
|
||||
} else {
|
||||
res.encoder = common.EncodeStringToBytes
|
||||
res.decoder = common.DecodeStringFromBytes
|
||||
}
|
||||
|
||||
sqlb = &res
|
||||
|
|
Loading…
Reference in New Issue
Block a user