Versions in this module Expand all Collapse all v0 v0.1.1 Nov 21, 2025 Changes in this version + type ReadWriteCloser struct + func (rwc *ReadWriteCloser) Close() error type Reader + func (r *Reader) Close() error + func (r *Reader) SetPrompt(prompt string) v0.1.0 Nov 21, 2025 Changes in this version + type CLI struct + func NewCLI(term Terminal, host string, port int, username, password, database string) *CLI + func NewCLIWithConfig(term Terminal, config *Config) *CLI + func (c *CLI) Close() error + func (c *CLI) Connect() error + func (c *CLI) Start() error + type Config struct + ApplicationName string + ConnMaxLifetime time.Duration + ConnectTimeout time.Duration + CustomParams string + Database string + Host string + MaxIdleConns int + MaxOpenConns int + Password string + Port int + SSLMode string + SearchPath string + StatementTimeout time.Duration + TimeZone string + Username string + type Reader struct + func NewReader(term io.ReadWriter) *Reader + func (r *Reader) ReadLine() (string, error) + type ServerInfo struct + ClientEncoding string + ConnectionID int + ServerEncoding string + Version string + type Terminal interface