Help us shape the future of Go! Take the 2026 Go Developer Survey

unicode

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 15 Imported by: 2

Documentation

Overview

Package unicode provides an alternative to the SQLite ICU extension.

Like the ICU extension, it provides Unicode aware:

  • upper() and lower() functions
  • LIKE and REGEXP operators
  • collation sequences

Like PostgreSQL, it also provides:

  • initcap()
  • casefold()
  • normalize()
  • unaccent()

The implementations are not 100% compatible:

Expect subtle differences (e.g.) in the handling of Turkish case folding.

Index

Constants

This section is empty.

Variables

View Source
var RegisterLike = true

RegisterLike must be set to false to not register a Unicode aware LIKE operator. Overriding the built-in LIKE operator disables the LIKE optimization.

Functions

func Register

func Register(db *sqlite3.Conn) error

Register registers Unicode aware functions for a database connection.

func RegisterCollation added in v0.8.5

func RegisterCollation(db *sqlite3.Conn, locale, name string) error

RegisterCollation registers a Unicode collation sequence for a database connection.

func RegisterCollationsNeeded added in v0.19.0

func RegisterCollationsNeeded(db *sqlite3.Conn) error

RegisterCollationsNeeded registers Unicode collation sequences on demand for a database connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL