示例#1
0
func (this *DeleteBuilder) From(del *db.Delete) {
	table := del.GetTable()
	alias := del.GetTableAlias()
	this.tablePart.AddAsOne(this.translator.TableName(table), " ", alias)
}
示例#2
0
func (this *DeleteBuilder) Where(del *db.Delete) {
	criteria := del.GetCriteria()
	if criteria != nil {
		this.wherePart.Add(this.translator.Translate(db.DELETE, criteria))
	}
}
示例#3
0
func (this *MySQL5DeleteBuilder) From(del *db.Delete) {
	table := del.GetTable()
	alias := del.GetTableAlias()
	// Multiple-table syntax:
	this.tablePart.AddAsOne(alias, " USING ", this.translator.TableName(table), " AS ", alias)
}