mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
24 lines
387 B
Go
24 lines
387 B
Go
package databases
|
|
|
|
import (
|
|
"log/slog"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type DatabaseValidator interface {
|
|
Validate() error
|
|
}
|
|
|
|
type DatabaseConnector interface {
|
|
TestConnection(logger *slog.Logger) error
|
|
}
|
|
|
|
type DatabaseCreationListener interface {
|
|
OnDatabaseCreated(databaseID uuid.UUID)
|
|
}
|
|
|
|
type DatabaseRemoveListener interface {
|
|
OnBeforeDatabaseRemove(databaseID uuid.UUID) error
|
|
}
|