Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 483 for columns (0.19 sec)

  1. migrator.go

    	TableType(dst interface{}) (TableType, error)
    
    	// Columns
    	AddColumn(dst interface{}, field string) error
    	DropColumn(dst interface{}, field string) error
    	AlterColumn(dst interface{}, field string) error
    	MigrateColumn(dst interface{}, field *schema.Field, columnType ColumnType) error
    	// MigrateColumnUnique migrate column's UNIQUE constraint, it's part of MigrateColumn.
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. statement.go

    				}
    			} else {
    				results[col] = result
    			}
    		} else {
    			results[column] = result
    		}
    	}
    
    	// select columns
    	for _, column := range stmt.Selects {
    		processColumn(column, true)
    	}
    
    	// omit columns
    	for _, column := range stmt.Omits {
    		processColumn(column, false)
    	}
    
    	if stmt.Schema != nil {
    		for _, field := range stmt.Schema.FieldsByName {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  3. migrator/index.go

    func (idx Index) Table() string {
    	return idx.TableName
    }
    
    // Name return the name of the index.
    func (idx Index) Name() string {
    	return idx.NameValue
    }
    
    // Columns return the columns of the index
    func (idx Index) Columns() []string {
    	return idx.ColumnList
    }
    
    // PrimaryKey returns the index is primary key or not.
    func (idx Index) PrimaryKey() (isPrimaryKey bool, ok bool) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Apr 11 02:32:46 GMT 2023
    - 1023 bytes
    - Viewed (0)
  4. api/go1.8.txt

    pkg database/sql/driver, type RowsColumnTypeDatabaseTypeName interface { Close, ColumnTypeDatabaseTypeName, Columns, Next }
    pkg database/sql/driver, type RowsColumnTypeDatabaseTypeName interface, Close() error
    pkg database/sql/driver, type RowsColumnTypeDatabaseTypeName interface, Columns() []string
    pkg database/sql/driver, type RowsColumnTypeDatabaseTypeName interface, ColumnTypeDatabaseTypeName(int) string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Dec 21 05:25:57 GMT 2016
    - 16.3K bytes
    - Viewed (0)
  5. chainable_api.go

    // Omit specify fields that you want to ignore when creating, updating and querying
    func (db *DB) Omit(columns ...string) (tx *DB) {
    	tx = db.getInstance()
    
    	if len(columns) == 1 && strings.ContainsRune(columns[0], ',') {
    		tx.Statement.Omits = strings.FieldsFunc(columns[0], utils.IsValidDBNameChar)
    	} else {
    		tx.Statement.Omits = columns
    	}
    	return
    }
    
    // Where add conditions
    //
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  6. clause/benchmarks_test.go

    			clause.Where{Exprs: []clause.Expression{
    				clause.Eq{Column: clause.PrimaryColumn, Value: "1"},
    				clause.Gt{Column: "age", Value: 18},
    				clause.Or(clause.Neq{Column: "name", Value: "jinzhu"}),
    			}},
    			clause.Where{Exprs: []clause.Expression{
    				clause.Or(clause.Gt{Column: "score", Value: 100}, clause.Like{Column: "name", Value: "%linus%"}),
    			}},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Oct 07 12:14:14 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/StandardRowSortedTable.java

    /**
     * Implementation of {@code Table} whose iteration ordering across row keys is sorted by their
     * natural ordering or by a supplied comparator. Note that iterations across the columns keys for a
     * single row key may or may not be ordered, depending on the implementation. When rows and columns
     * are both sorted, it's easier to use the {@link TreeBasedTable} subclass.
     *
     * <p>The {@link #rowKeySet} method returns a {@link SortedSet} and the {@link #rowMap} method
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jul 15 15:41:16 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  8. tests/postgres_test.go

    	}
    
    	hasLogID := false
    	for _, column := range columns {
    		if column.Name() == "log_id" {
    			hasLogID = true
    			autoIncrement, ok := column.AutoIncrement()
    			if !ok || !autoIncrement {
    				t.Fatalf("column log_id should be auto incrementment")
    			}
    		}
    	}
    
    	if !hasLogID {
    		t.Fatalf("failed to found column log_id")
    	}
    }
    
    type Post struct {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Oct 08 09:16:32 GMT 2022
    - 6.4K bytes
    - Viewed (3)
  9. android/guava/src/com/google/common/collect/ImmutableTable.java

       * generated by applying the specified functions. If multiple inputs are mapped to the same row
       * and column pair, they will be combined with the specified merging function in encounter order.
       *
       * <p>The returned {@code Collector} will throw a {@code NullPointerException} at collection time
       * if the row, column, value, or merging functions return null on any input.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  10. clause/values_test.go

    func TestValues(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    				clause.Insert{},
    				clause.Values{
    					Columns: []clause.Column{{Name: "name"}, {Name: "age"}},
    					Values:  [][]interface{}{{"jinzhu", 18}, {"josh", 1}},
    				},
    			},
    			"INSERT INTO `users` (`name`,`age`) VALUES (?,?),(?,?)",
    			[]interface{}{"jinzhu", 18, "josh", 1},
    		},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 691 bytes
    - Viewed (0)
Back to top