示例#1
0
文件: zzposttag.go 项目: oov/sqruct
func (zzPostTag) InsertBuilder(t *PostTag) (*q.ZInsertBuilder, *zzPostTagTable) {
	tbl := zzPostTag{}.T()
	return q.Insert().Into(tbl).
		Set(tbl.PostID(), t.PostID).
		Set(tbl.TagID(), t.TagID).
		SetDialect(q.SQLite), tbl
}
示例#2
0
文件: zzpost.go 项目: oov/sqruct
func (zzPost) InsertBuilder(t *Post) (*q.ZInsertBuilder, *zzPostTable) {
	tbl := zzPost{}.T()
	return q.Insert().Into(tbl).
		Set(tbl.AccountID(), t.AccountID).
		Set(tbl.At(), t.At).
		Set(tbl.Message(), t.Message).
		SetDialect(q.SQLite), tbl
}
示例#3
0
文件: zzaccount.go 项目: oov/sqruct
func (zzAccount) InsertBuilder(t *Account) (*q.ZInsertBuilder, *zzAccountTable) {
	tbl := zzAccount{}.T()
	return q.Insert().Into(tbl).
		Set(tbl.Name(), t.Name).
		SetDialect(q.SQLite), tbl
}