mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-11 09:20:17 +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 {
|
if interleaved {
|
||||||
res.encoder = common.EncodeStringToBytes
|
|
||||||
res.decoder = common.DecodeStringFromBytes
|
|
||||||
} else {
|
|
||||||
res.encoder = common.EncodeStringToBytesFromInterleaved
|
res.encoder = common.EncodeStringToBytesFromInterleaved
|
||||||
res.decoder = common.DecodeStringFromBytesToInterleaved
|
res.decoder = common.DecodeStringFromBytesToInterleaved
|
||||||
|
} else {
|
||||||
|
res.encoder = common.EncodeStringToBytes
|
||||||
|
res.decoder = common.DecodeStringFromBytes
|
||||||
}
|
}
|
||||||
|
|
||||||
sqlb = &res
|
sqlb = &res
|
||||||
|
Loading…
Reference in New Issue
Block a user