postgres

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() jdb.Driver

Types

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func (*Postgres) Command

func (s *Postgres) Command(command *jdb.Command) (et.Item, error)

func (*Postgres) Connect

func (s *Postgres) Connect(params et.Json) error

func (*Postgres) Count

func (s *Postgres) Count(linq *jdb.Linq) (int, error)

func (*Postgres) CreateCore

func (s *Postgres) CreateCore() error

func (*Postgres) CreateDatabase

func (s *Postgres) CreateDatabase(name string) error

func (*Postgres) CreateModel

func (s *Postgres) CreateModel(model *jdb.Model) error

func (*Postgres) CreateSchema

func (s *Postgres) CreateSchema(name string) error

func (*Postgres) Current

func (s *Postgres) Current(command *jdb.Command) (et.Items, error)

func (*Postgres) CurrentSerie

func (s *Postgres) CurrentSerie(tag string) int64

func (*Postgres) DeleteUser

func (s *Postgres) DeleteUser(username string) error

func (*Postgres) Disconnect

func (s *Postgres) Disconnect() error

func (*Postgres) DropDatabase

func (s *Postgres) DropDatabase(name string) error

func (*Postgres) DropSchema

func (s *Postgres) DropSchema(name string) error

func (*Postgres) Exec

func (s *Postgres) Exec(sql string, params ...interface{}) error

func (*Postgres) GetSerie

func (s *Postgres) GetSerie(tag string) int64

func (*Postgres) Last

func (s *Postgres) Last(linq *jdb.Linq) (et.Items, error)

func (*Postgres) MutateModel

func (s *Postgres) MutateModel(model *jdb.Model) error

func (*Postgres) Name

func (s *Postgres) Name() string

func (*Postgres) NextCode

func (s *Postgres) NextCode(tag, prefix string) string

func (*Postgres) One

func (s *Postgres) One(sql string, params ...interface{}) (et.Item, error)

func (*Postgres) Query

func (s *Postgres) Query(linq *jdb.Linq) (et.Items, error)

func (*Postgres) SQL

func (s *Postgres) SQL(sql string, params ...interface{}) (et.Items, error)

func (*Postgres) SetMain

func (s *Postgres) SetMain(params et.Json) error

func (*Postgres) SetSerie

func (s *Postgres) SetSerie(tag string, val int) int64

func (*Postgres) SetUser

func (s *Postgres) SetUser(username, password, confirmation string) error

Jump to

Keyboard shortcuts

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