package xql
|
|
|
|
type TableObject struct {
|
|
TableName string
|
|
Schema string
|
|
Entity interface{}
|
|
}
|
|
|
|
type QueryObject struct {
|
|
table *TableObject
|
|
}
|
|
|
|
|
|
func DeclareTable(name string, entity interface{}, schema ...string) TableObject {
|
|
|
|
t := TableObject{
|
|
TableName:name,
|
|
Entity: entity,
|
|
}
|
|
if len(schema) > 0 {
|
|
t.Schema = schema[0]
|
|
}
|
|
return t
|
|
}
|
|
|
|
func (t *TableObject) Select(fields...string) *QueryObject {
|
|
return nil
|
|
}
|
|
|
|
func (t *TableObject) Update() *QueryObject {
|
|
return nil
|
|
}
|
|
|
|
func (t *TableObject) Delete() *QueryObject {
|
|
return nil
|
|
}
|
|
|
|
func (t *TableObject) Insert() *QueryObject {
|
|
return nil
|
|
}
|
|
|
|
func (t *TableObject) Replace() *QueryObject {
|
|
return nil
|
|
}
|