Documentation
¶
Index ¶
- type Diff
- type HealthReport
- type IndexSpec
- type MigrationRecord
- type MigrationStatus
- type OplogEntry
- type Service
- func (s *Service) Connect(ctx context.Context, connectionString, database, username, password string) error
- func (s *Service) CreateMigration(ctx context.Context, name string) (string, error)
- func (s *Service) Disconnect() error
- func (s *Service) Down(ctx context.Context, targetVersion string, dryRun bool) (string, error)
- func (s *Service) GetDBHealth(ctx context.Context) (HealthReport, error)
- func (s *Service) GetMCPActivity(ctx context.Context, limit int) ([]map[string]interface{}, error)
- func (s *Service) GetMCPServerStatus(ctx context.Context) (map[string]interface{}, error)
- func (s *Service) GetMigrationsPath() string
- func (s *Service) GetOplog(ctx context.Context, limit int) ([]interface{}, error)
- func (s *Service) GetOpslog(ctx context.Context, search, version, regexStr, from, to string, limit int) ([]MigrationRecord, error)
- func (s *Service) GetSchemaDiff(ctx context.Context) ([]Diff, error)
- func (s *Service) GetSchemaIndexes(ctx context.Context) ([]IndexSpec, error)
- func (s *Service) GetStatus(ctx context.Context) ([]MigrationStatus, error)
- func (s *Service) SetMigrationsPath(path string) error
- func (s *Service) StartMCPServer(ctx context.Context, transport, listenAddr string) (string, error)
- func (s *Service) StopMCPServer(ctx context.Context) (string, error)
- func (s *Service) Up(ctx context.Context, target string, dryRun bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthReport ¶
type MigrationRecord ¶
type MigrationStatus ¶
type OplogEntry ¶
type OplogEntry map[string]interface{}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) CreateMigration ¶
func (*Service) Disconnect ¶
func (*Service) GetDBHealth ¶
func (s *Service) GetDBHealth(ctx context.Context) (HealthReport, error)
func (*Service) GetMCPActivity ¶
func (*Service) GetMCPServerStatus ¶
func (*Service) GetMigrationsPath ¶
GetMigrationsPath returns the configured migrations output directory.
func (*Service) GetSchemaDiff ¶
func (*Service) GetSchemaIndexes ¶
func (*Service) GetStatus ¶
func (s *Service) GetStatus(ctx context.Context) ([]MigrationStatus, error)
func (*Service) SetMigrationsPath ¶
SetMigrationsPath sets the output directory for generated migrations.
func (*Service) StartMCPServer ¶
func (*Service) StopMCPServer ¶
Click to show internal directories.
Click to hide internal directories.