postgres

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: AGPL-3.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMentionNotification added in v0.25.0

func AddMentionNotification(ctx context.Context, c *cmd.AddMentionNotification) error

func MapLocaleToTSConfig added in v0.30.0

func MapLocaleToTSConfig(locale string) string

MapLocaleToTSConfig maps a tenant's locale short key to the corresponding PostgreSQL text search configuration. Returns 'simple' if no match is found or if PostgreSQL doesn't have native support for the language. All locale definitions are centralized in app/models/enum/locale.go

func SanitizeString added in v0.22.0

func SanitizeString(input string) string

SanitizeString converts input to another string that only contains utf-8 characters and not-null characters

func ToTSQuery

func ToTSQuery(input string) string

ToTSQuery converts input to another string that can be safely used for ts_query

Types

type Service

type Service struct{}

func (Service) Category

func (s Service) Category() string

func (Service) Enabled

func (s Service) Enabled() bool

func (Service) Init

func (s Service) Init()

func (Service) Name

func (s Service) Name() string

type SqlHandler

type SqlHandler func(trx *dbx.Trx, tenant *entity.Tenant, user *entity.User) error

Jump to

Keyboard shortcuts

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