SQLInterface expose abstract operations that can be applied on a MySQL node
| 36 | |
| 37 | // SQLInterface expose abstract operations that can be applied on a MySQL node |
| 38 | type SQLInterface interface { |
| 39 | Wait(ctx context.Context) error |
| 40 | DisableSuperReadOnly(ctx context.Context) (func(), error) |
| 41 | ChangeMasterTo(ctx context.Context, host string, user string, pass string) error |
| 42 | MarkConfigurationDone(ctx context.Context) error |
| 43 | IsConfigured(ctx context.Context) (bool, error) |
| 44 | SetPurgedGTID(ctx context.Context) error |
| 45 | MarkSetGTIDPurged(ctx context.Context) error |
| 46 | Host() string |
| 47 | } |
| 48 | |
| 49 | type nodeSQLRunner struct { |
| 50 | dsn string |
no outgoing calls
no test coverage detected