server

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	postgresql.Server
	*store.Store
}

Server represents a test server.

func NewServer

func NewServer() *Server

NewServer returns a test server instance.

func (*Server) Authenticate

func (server *Server) Authenticate(*postgresql.Conn, *protocol.Startup) (protocol.Response, error)

Authenticate authenticates the connection with the startup protocol.

func (*Server) Copy added in v1.6.0

func (server *Server) Copy(conn postgresql.Conn, q query.Copy) (protocol.Responses, error)

Copy handles a COPY query.

func (*Server) CopyData added in v1.6.0

func (server *Server) CopyData(conn postgresql.Conn, q query.Copy, stream *postgresql.CopyStream) (protocol.Responses, error)

Copy handles a COPY DATA protocol.

func (*Server) ParserError added in v1.1.0

func (server *Server) ParserError(conn postgresql.Conn, q string, err error) (protocol.Responses, error)

ParserError handles a parser error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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