25 lines
638 B
Go
25 lines
638 B
Go
package readers
|
|
|
|
import (
|
|
"git.warky.dev/wdevs/relspecgo/pkg/models"
|
|
)
|
|
|
|
// Reader defines the interface for reading database specifications
|
|
// from various input formats
|
|
type Reader interface {
|
|
// Read reads and parses the input, returning a Database model
|
|
Read() (*models.Database, error)
|
|
}
|
|
|
|
// ReaderOptions contains common options for readers
|
|
type ReaderOptions struct {
|
|
// FilePath is the path to the input file (if applicable)
|
|
FilePath string
|
|
|
|
// ConnectionString is the database connection string (for DB readers)
|
|
ConnectionString string
|
|
|
|
// Additional options can be added here as needed
|
|
Metadata map[string]interface{}
|
|
}
|