postgres

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSG_FUNCION_NOT_FOUND = "Function not found"
	MSG_COMMAND_NOT_FOUND = "Command not found"
)

Variables

This section is empty.

Functions

func JsonQuote

func JsonQuote(val interface{}) interface{}

func NewDriver

func NewDriver() jdb.Driver

Types

type Postgres

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

func (*Postgres) ChangePassword

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

func (*Postgres) Command

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

* * Command * @param command *jdb.Command * @return et.Items, error *

func (*Postgres) Connect

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

* * Connect * @param params et.Json * @return error *

func (*Postgres) Count

func (s *Postgres) Count(ql *jdb.Ql) (int, error)

* * Count * @param ql *jdb.Ql * @return int, error *

func (*Postgres) CreateDatabase

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

* * CreateDatabase * @param name string * @return error *

func (*Postgres) CreateUser

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

func (*Postgres) DeleteUser

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

func (*Postgres) Disconnect

func (s *Postgres) Disconnect() error

* * Disconnect * @return error *

func (*Postgres) DropDatabase

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

* * DropDatabase * @param name string * @return error *

func (*Postgres) DropModel

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

* * DropModel * @param model *jdb.Model * @return error *

func (*Postgres) DropSchema

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

* * DropSchema * @param name string * @return error *

func (*Postgres) ExistSchema

func (s *Postgres) ExistSchema(name string) (bool, error)

* * ExistSchema * @param name string * @return bool, error *

func (*Postgres) Exists

func (s *Postgres) Exists(ql *jdb.Ql) (bool, error)

* * Exists * @param ql *jdb.Ql * @return bool, error *

func (*Postgres) GrantPrivileges

func (s *Postgres) GrantPrivileges(username, database string) error

func (*Postgres) LoadModel

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

* * LoadModel * @param model *jdb.Model * @return error *

func (*Postgres) LoadSchema

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

* * LoadSchema * @param name string * @return error *

func (*Postgres) MutateModel

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

* * MutateModel * @param model *jdb.Model * @return error *

func (*Postgres) Name

func (s *Postgres) Name() string

func (*Postgres) Query

func (s *Postgres) Query(sql string, arg ...any) (et.Items, error)

* * Query * @param sql string, arg ...any * @return et.Items, error *

func (*Postgres) QueryTx

func (s *Postgres) QueryTx(tx *jdb.Tx, sql string, arg ...any) (et.Items, error)

* * QueryTx * @param tx *jdb.Tx, sql string, arg ...any * @return et.Items, error *

func (*Postgres) Select

func (s *Postgres) Select(ql *jdb.Ql) (et.Items, error)

* * Select * @param ql *jdb.Ql * @return et.Items, error *

func (*Postgres) SetMain

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

func (*Postgres) Sync

func (s *Postgres) Sync(command string, data et.Json) error

* * Sync * @param command string * @param data et.Json * @return error *

func (*Postgres) Version

func (s *Postgres) Version() int

* * Version * @return int *

Jump to

Keyboard shortcuts

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