hash

package
v0.20.1-0...-6281685 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExprsToSchema

func ExprsToSchema(exprs ...sql.Expression) sql.Schema

ExprsToSchema converts a list of sql.Expression to a sql.Schema. This is used for functions that use HashOf, but don't already have a schema. The generated schema ONLY contains the types of the expressions without any column names or any other info.

func HashOf

func HashOf(ctx *sql.Context, sch sql.Schema, row sql.Row) (uint64, error)

HashOf returns a hash of the given row to be used as key in a cache.

func HashOfSimple

func HashOfSimple(ctx *sql.Context, i any, t sql.Type) (uint64, sql.ConvertInRange, error)

HashOfSimple returns a hash for a single interface value

Types

This section is empty.

Jump to

Keyboard shortcuts

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