func (this *DeleteBuilder) From(del *db.Delete) { table := del.GetTable() alias := del.GetTableAlias() this.tablePart.AddAsOne(this.translator.TableName(table), " ", alias) }
func (this *DeleteBuilder) Where(del *db.Delete) { criteria := del.GetCriteria() if criteria != nil { this.wherePart.Add(this.translator.Translate(db.DELETE, criteria)) } }
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) }