init
Some checks are pending
CI / Test (1.23) (push) Waiting to run
CI / Test (1.24) (push) Waiting to run
CI / Test (1.25) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Build (push) Waiting to run

This commit is contained in:
2025-12-16 13:12:43 +02:00
parent 9f42be432b
commit b9650739bf
20 changed files with 1095 additions and 2 deletions

24
pkg/readers/reader.go Normal file
View File

@@ -0,0 +1,24 @@
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{}
}