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