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