mirror of
https://github.com/luxfi/database.git
synced 2026-10-30 15:01:18 +00:00
25 lines
445 B
Go
25 lines
445 B
Go
// Copyright (C) 2020-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package linkeddb
|
|
|
|
import (
|
|
"math"
|
|
|
|
"github.com/luxfi/database/codec"
|
|
"github.com/luxfi/database/codec/linear"
|
|
)
|
|
|
|
const CodecVersion = 0
|
|
|
|
var Codec codec.Manager
|
|
|
|
func init() {
|
|
lc := linear.NewDefault()
|
|
Codec = linear.NewManager(math.MaxInt32)
|
|
|
|
if err := Codec.RegisterCodec(CodecVersion, lc); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|