parser

package
v0.0.0-...-be0bec8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 14 Imported by: 4 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeparseFromProtobuf

func DeparseFromProtobuf(input []byte) (result string, err error)

DeparseFromProtobuf - Deparses the given Protobuf format parse tree into a SQL statement.

func FingerprintToHexStr

func FingerprintToHexStr(input string) (result string, err error)

FingerprintToHexStr - Fingerprint the passed SQL statement using the C extension and returns result as hex string.

func FingerprintToUInt64

func FingerprintToUInt64(input string) (result uint64, err error)

FingerprintToUInt64 - Fingerprint the passed SQL statement using the C extension and returns result as uint64.

func HashXXH3_64

func HashXXH3_64(input []byte, seed uint64) (result uint64)

HashXXH3_64 - Helper method to run XXH3 hash function (64-bit variant) on the given bytes, with the specified seed.

func Normalize

func Normalize(input string) (result string, err error)

Normalize the passed SQL statement to replace constant values with ? characters.

func ParsePlPgSqlToJSON

func ParsePlPgSqlToJSON(input string) (result string, err error)

ParsePlPgSqlToJSON - Parses the given PL/pgSQL function statement into a parse tree (JSON format).

func ParseToJSON

func ParseToJSON(input string) (result string, err error)

ParseToJSON - Parses the given SQL statement into a parse tree (JSON format).

func ParseToProtobuf

func ParseToProtobuf(input string) (result []byte, err error)

ParseToProtobuf - Parses the given SQL statement into a parse tree (Protobuf format).

func ScanToProtobuf

func ScanToProtobuf(input string) (result []byte, err error)

Scans the given SQL statement into a protobuf ScanResult.

Types

type Error

type Error = pgerror.Error

Jump to

Keyboard shortcuts

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