123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- // Code generated by sqlc-pg-gen. DO NOT EDIT.
- package contrib
- import (
- "github.com/sqlc-dev/sqlc/internal/sql/ast"
- "github.com/sqlc-dev/sqlc/internal/sql/catalog"
- )
- var funcsFuzzystrmatch = []*catalog.Function{
- {
- Name: "difference",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "text"},
- },
- },
- ReturnType: &ast.TypeName{Name: "integer"},
- },
- {
- Name: "dmetaphone",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- },
- ReturnType: &ast.TypeName{Name: "text"},
- },
- {
- Name: "dmetaphone_alt",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- },
- ReturnType: &ast.TypeName{Name: "text"},
- },
- {
- Name: "levenshtein",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "text"},
- },
- },
- ReturnType: &ast.TypeName{Name: "integer"},
- },
- {
- Name: "levenshtein",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- },
- ReturnType: &ast.TypeName{Name: "integer"},
- },
- {
- Name: "levenshtein_less_equal",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- },
- ReturnType: &ast.TypeName{Name: "integer"},
- },
- {
- Name: "levenshtein_less_equal",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- },
- ReturnType: &ast.TypeName{Name: "integer"},
- },
- {
- Name: "metaphone",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- {
- Type: &ast.TypeName{Name: "integer"},
- },
- },
- ReturnType: &ast.TypeName{Name: "text"},
- },
- {
- Name: "soundex",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- },
- ReturnType: &ast.TypeName{Name: "text"},
- },
- {
- Name: "text_soundex",
- Args: []*catalog.Argument{
- {
- Type: &ast.TypeName{Name: "text"},
- },
- },
- ReturnType: &ast.TypeName{Name: "text"},
- },
- }
- func Fuzzystrmatch() *catalog.Schema {
- s := &catalog.Schema{Name: "pg_catalog"}
- s.Funcs = funcsFuzzystrmatch
- return s
- }
|