Kepler core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

44 lines
770 B

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
}