Unknown collations.

This commit is contained in:
Nuno Cruces
2023-07-04 11:16:29 +01:00
parent 78ac2386f6
commit d3730341f0
4 changed files with 72 additions and 4 deletions

10
func.go
View File

@@ -8,6 +8,16 @@ import (
"github.com/tetratelabs/wazero/api"
)
// AnyCollationNeeded registers a fake collating function
// for any unknown collating sequence.
// The fake collating function works like BINARY.
//
// This extension can be used to load schemas that contain
// one or more unknown collating sequences.
func (c *Conn) AnyCollationNeeded() {
c.call(c.api.anyCollation, uint64(c.handle), 0, 0)
}
// CreateCollation defines a new collating sequence.
//
// https://www.sqlite.org/c3ref/create_collation.html