Add working tview, add working load ond Tables, remove giu
This commit is contained in:
19
table.go
19
table.go
@@ -13,26 +13,29 @@ const (
|
||||
FOREIGN_KEY
|
||||
NOT_NULL
|
||||
|
||||
NONE ColumnFlag = 0
|
||||
NONE ColumnFlag = 0
|
||||
)
|
||||
|
||||
func (v ColumnFlag) Has(flag ColumnFlag) bool {
|
||||
return v&flag == flag
|
||||
}
|
||||
|
||||
type ColumnType uint32
|
||||
|
||||
const (
|
||||
TEXT ColumnType = iota
|
||||
INTEGER
|
||||
REAL
|
||||
BLOB
|
||||
)
|
||||
|
||||
type Column struct {
|
||||
Type string
|
||||
Type ColumnType
|
||||
Name string
|
||||
Reference *Column
|
||||
Flags ColumnFlag
|
||||
}
|
||||
|
||||
|
||||
// For testing purposes its string right now
|
||||
// type Value interface {
|
||||
// Representation() string
|
||||
// }
|
||||
|
||||
type Row struct {
|
||||
// This should be map but to Column so its always the right Column but for testing this is a slice now
|
||||
Values []string
|
||||
|
||||
Reference in New Issue
Block a user