gorm/orm.go

79 lines
1.2 KiB
Go
Raw Normal View History

2013-10-25 14:04:48 +04:00
package gorm
import "database/sql"
type Orm struct {
Db *sql.DB
TableName string
WhereStr string
OrderStr string
PrimaryKey string
OffsetInt int64
LimitInt int64
2013-10-25 14:31:10 +04:00
Error bool
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Where(querystring interface{}, args ...interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) First(out interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Find(out interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Limit(value interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Offset(value interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Order(value interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Or(querystring interface{}, args ...interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Not(querystring interface{}, args ...interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Count() int64 {
return 0
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Select(querystring string) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Save(value interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Delete(value interface{}) *Orm {
return s
2013-10-25 14:04:48 +04:00
}
2013-10-25 17:11:29 +04:00
func (s *Orm) Update(column string, value string) *Orm {
return s
}
func (s *Orm) Updates(values map[string]string) *Orm {
return s
}
2013-10-25 14:31:10 +04:00
func (s *Orm) Exec(sql string) *Orm {
return s
}
func (s *Orm) Explain() string {
return ""
2013-10-25 14:04:48 +04:00
}