Documentation ¶
Index ¶
- func NewService() query.Service
- type Service
- func (service *Service) AlterDatabase(conn postgresql.Conn, stmt stmt.AlterDatabase) (protocol.Responses, error)
- func (service *Service) AlterTable(conn postgresql.Conn, stmt stmt.AlterTable) (protocol.Responses, error)
- func (service *Service) Begin(conn postgresql.Conn, stmt stmt.Begin) (protocol.Responses, error)
- func (service *Service) Commit(conn postgresql.Conn, stmt stmt.Commit) (protocol.Responses, error)
- func (service *Service) Copy(conn postgresql.Conn, stmt stmt.Copy) (protocol.Responses, error)
- func (service *Service) CopyData(conn postgresql.Conn, stmt stmt.Copy, stream *postgresql.CopyStream) (protocol.Responses, error)
- func (service *Service) CreateDatabase(conn postgresql.Conn, stmt stmt.CreateDatabase) (protocol.Responses, error)
- func (service *Service) CreateTable(conn postgresql.Conn, stmt stmt.CreateTable) (protocol.Responses, error)
- func (service *Service) Delete(conn postgresql.Conn, stmt stmt.Delete) (protocol.Responses, error)
- func (service *Service) DropDatabase(conn postgresql.Conn, stmt stmt.DropDatabase) (protocol.Responses, error)
- func (service *Service) DropTable(conn postgresql.Conn, stmt stmt.DropTable) (protocol.Responses, error)
- func (service *Service) Insert(conn postgresql.Conn, stmt stmt.Insert) (protocol.Responses, error)
- func (service *Service) ParserError(conn postgresql.Conn, q string, err error) (protocol.Responses, error)
- func (service *Service) Rollback(conn postgresql.Conn, stmt stmt.Rollback) (protocol.Responses, error)
- func (service *Service) Select(conn postgresql.Conn, stmt stmt.Select) (protocol.Responses, error)
- func (service *Service) ServiceName() string
- func (service *Service) Start() error
- func (service *Service) Stop() error
- func (service *Service) Update(conn postgresql.Conn, stmt stmt.Update) (protocol.Responses, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { postgresql.Server *sql.Service }
Service represents a new PostgreSQL service instance.
func (*Service) AlterDatabase ¶ added in v1.0.3
func (service *Service) AlterDatabase(conn postgresql.Conn, stmt stmt.AlterDatabase) (protocol.Responses, error)
AlterDatabase handles a ALTER DATABASE query.
func (*Service) AlterTable ¶ added in v1.0.3
func (service *Service) AlterTable(conn postgresql.Conn, stmt stmt.AlterTable) (protocol.Responses, error)
AlterTable handles a ALTER TABLE query.
func (*Service) CopyData ¶ added in v1.0.3
func (service *Service) CopyData(conn postgresql.Conn, stmt stmt.Copy, stream *postgresql.CopyStream) (protocol.Responses, error)
Copy handles a COPY DATA protocol.
func (*Service) CreateDatabase ¶
func (service *Service) CreateDatabase(conn postgresql.Conn, stmt stmt.CreateDatabase) (protocol.Responses, error)
CreateDatabase handles a CREATE DATABASE query.
func (*Service) CreateTable ¶
func (service *Service) CreateTable(conn postgresql.Conn, stmt stmt.CreateTable) (protocol.Responses, error)
CreateTable handles a CREATE TABLE query.
func (*Service) DropDatabase ¶
func (service *Service) DropDatabase(conn postgresql.Conn, stmt stmt.DropDatabase) (protocol.Responses, error)
DropDatabase handles a DROP DATABASE query.
func (*Service) DropTable ¶
func (service *Service) DropTable(conn postgresql.Conn, stmt stmt.DropTable) (protocol.Responses, error)
DropIndex handles a DROP INDEX query.
func (*Service) ParserError ¶ added in v1.0.3
func (service *Service) ParserError(conn postgresql.Conn, q string, err error) (protocol.Responses, error)
ParserError handles a parser error.
func (*Service) Rollback ¶ added in v1.0.3
func (service *Service) Rollback(conn postgresql.Conn, stmt stmt.Rollback) (protocol.Responses, error)
Rollback handles a ROLLBACK query.
func (*Service) ServiceName ¶
ServiceName returns the plug-in service name.
Click to show internal directories.
Click to hide internal directories.