Documentation
¶
Index ¶
- Constants
- type Config
- type Service
- func (s *Service) Close() error
- func (s *Service) DefaultSchema() string
- func (s *Service) DescribeTable(ctx context.Context, schema, table string) ([]map[string]any, error)
- func (s *Service) Execute(ctx context.Context, statement string) (int64, error)
- func (s *Service) ListDatabases(ctx context.Context, limit int) ([]map[string]any, error)
- func (s *Service) ListSchemas(ctx context.Context, limit int) ([]map[string]any, error)
- func (s *Service) ListTables(ctx context.Context, schema string, limit int) ([]map[string]any, error)
- func (s *Service) Query(ctx context.Context, statement string, maxRows int) (shareddb.QueryResult, error)
Constants ¶
View Source
const ( Name = "postgres-mcp" Version = buildinfo.Version )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DB shareddb.BaseConfig
DSN string
Host string
Port int
User string
Password string
Database string
SSLMode string
}
func LoadConfig ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DefaultSchema ¶
func (*Service) DescribeTable ¶
func (*Service) ListDatabases ¶
func (*Service) ListSchemas ¶
func (*Service) ListTables ¶
Click to show internal directories.
Click to hide internal directories.