Documentation
¶
Index ¶
- Constants
- Variables
- func Gopt_AppGen_Main(app interface{ ... }, workers ...interface{ initClass(self any) })
- func Gopt_Sql_Gopx_Table[Schema any](sql interface{ ... }, nameVer string)
- func Register(e *Engine)
- type AppGen
- type Class
- func (p *Class) Count(cond string, args ...any) (n int, err error)
- func (p *Class) Delete(cond string, args ...any) (sql.Result, error)
- func (p *Class) Gop_Exec(name string, args ...any)
- func (p *Class) Insert(args ...any) (sql.Result, error)
- func (p *Class) LastErr() error
- func (p *Class) Limit__0(n int)
- func (p *Class) Limit__1(n int, cond string, args ...any) error
- func (p *Class) NoRows() bool
- func (p *Class) OnErr(onErr func(error))
- func (p *Class) Out(i int) any
- func (p *Class) Query(cond string, args ...any)
- func (p *Class) Ret(args ...any)
- func (p *Class) Use(table string)
- type Engine
- type Sql
- type Table
Constants ¶
View Source
const (
GopPackage = "github.com/goplus/yap/test"
)
Variables ¶
Functions ¶
func Gopt_AppGen_Main ¶
func Gopt_AppGen_Main(app interface{ initApp() }, workers ...interface{ initClass(self any) })
func Gopt_Sql_Gopx_Table ¶
Table creates a new table by specified Schema.
Types ¶
type Class ¶
func (*Class) Delete ¶ added in v0.7.6
Delete deltes rows by cond.
- delete <cond>, <arg1>, <arg2>, ...
func (*Class) Insert ¶ added in v0.7.6
Insert inserts new rows.
- insert <colName1>, <val1>, <colName2>, <val2>, ...
- insert <colName1>, <valSlice1>, <colName2>, <valSlice2>, ...
- insert <structValOrPtr>
- insert <structOrPtrSlice>
Source Files
¶
Click to show internal directories.
Click to hide internal directories.