postgres

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct{}

func (*Postgres) Cast

func (p *Postgres) Cast(value string, q *crud.QueryParam) (err error)

Cast Приведение переменной к типу данных

func (*Postgres) Format

func (p *Postgres) Format(r *crud.CRUD, q *crud.QueryParam) (*crud.QueryParam, error)

func (*Postgres) IsArray

func (*Postgres) IsArray(value string) ([]string, bool)

IsArray Проверка на массив

func (*Postgres) IsRange

func (*Postgres) IsRange(znak, value string) ([]string, bool)

func (*Postgres) Pattern

func (p *Postgres) Pattern() string

func (*Postgres) Query

func (p *Postgres) Query(q *crud.QueryParams, columns []string) (query string, values []any)

func (*Postgres) SetFloat32Array

func (*Postgres) SetFloat32Array(array []string) (a []float32)

func (*Postgres) SetFloat64Array

func (*Postgres) SetFloat64Array(array []string) (a []float64)

func (*Postgres) SetInt32Array

func (*Postgres) SetInt32Array(array []string) (a []int)

func (*Postgres) SetInt64Array

func (*Postgres) SetInt64Array(array []string) (a []int64)

func (*Postgres) SetTimeArray

func (*Postgres) SetTimeArray(array []string, layout string) (a []time.Time)

func (*Postgres) SetUInt64Array

func (*Postgres) SetUInt64Array(array []string) (a []uint64)

func (*Postgres) SetUIntArray

func (*Postgres) SetUIntArray(array []string) (a []uint64)

Jump to

Keyboard shortcuts

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