Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TABLE (0.06 sec)

  1. statement.go

    		if tables := strings.Split(stmt.Schema.Table, "."); len(tables) == 2 {
    			stmt.TableExpr = &clause.Expr{SQL: stmt.Quote(stmt.Schema.Table)}
    			stmt.Table = tables[1]
    			return
    		}
    
    		stmt.Table = stmt.Schema.Table
    	}
    	return err
    }
    
    func (stmt *Statement) clone() *Statement {
    	newStmt := &Statement{
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. generics.go

    	return c.with(func(db *DB) *DB {
    		if jt.Table == "" {
    			jt.Table = clause.JoinTable(strings.Split(jt.Association, ".")...).Name
    		}
    
    		q := joinBuilder{db: db.Session(&Session{NewDB: true, Initialized: true}).Table(jt.Table)}
    		if on != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. tests/generics_test.go

    	}
    
    	// Left JOIN + Alias WHERE
    	result, err = db.Joins(clause.LeftJoin.Association("Company").As("t"), func(db gorm.JoinBuilder, joinTable clause.Table, curTable clause.Table) error {
    		if joinTable.Name != "t" {
    			t.Fatalf("Join table should be t, but got %v", joinTable.Name)
    		}
    		db.Where("?.name = ?", joinTable, u.Company.Name)
    		return nil
    	}).Where(map[string]any{"name": u.Name}).First(ctx)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
Back to top