This repository has been archived on 2025-05-15. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
synchronizator-go/pkg/types.go

37 lines
522 B
Go

package synchronizator
import (
sql "database/sql"
"os"
)
type NodeType map[string]Node
type db struct {
Connection *sql.DB
logger *os.File
log_level LogLevel
drop_tables bool
node_types NodeType
}
type Options struct {
Logger *os.File
Log_level LogLevel
DANGEROUSLY_DROP_TABLES bool
}
type Relationship struct {
_class string
}
type LogLevel int
// Lower levels take precedence
//go:generate stringer -type=LogLevel
const (
ERROR LogLevel = iota
INFO
DEBUG
)