Example #1
0
File: zzpost.go Project: oov/sqruct
func (zzPost) UpdateBuilder(t *Post) (*q.ZUpdateBuilder, *zzPostTable) {
	tbl := zzPost{}.T()
	return q.Update(tbl).
		Set(tbl.AccountID(), t.AccountID).
		Set(tbl.At(), t.At).
		Set(tbl.Message(), t.Message).
		SetDialect(q.SQLite), tbl
}
Example #2
0
func (zzAccount) UpdateBuilder(t *Account) (*q.ZUpdateBuilder, *zzAccountTable) {
	tbl := zzAccount{}.T()
	return q.Update(tbl).
		Set(tbl.Name(), t.Name).
		SetDialect(q.SQLite), tbl
}
Example #3
0
func (zzPostTag) UpdateBuilder(t *PostTag) (*q.ZUpdateBuilder, *zzPostTagTable) {
	tbl := zzPostTag{}.T()
	return q.Update(tbl).
		SetDialect(q.SQLite), tbl
}