Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Ct (0.15 sec)

  1. migrator/table_type.go

    }
    
    // Schema returns the schema of the table.
    func (ct TableType) Schema() string {
    	return ct.SchemaValue
    }
    
    // Name returns the name of the table.
    func (ct TableType) Name() string {
    	return ct.NameValue
    }
    
    // Type returns the type of the table.
    func (ct TableType) Type() string {
    	return ct.TypeValue
    }
    
    // Comment returns the comment of current table.
    func (ct TableType) Comment() (comment string, ok bool) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri May 05 07:58:27 GMT 2023
    - 688 bytes
    - Viewed (0)
  2. migrator/column_type.go

    	if ct.LengthValue.Valid {
    		return ct.LengthValue.Int64, true
    	}
    	return ct.SQLColumnType.Length()
    }
    
    // DecimalSize returns the scale and precision of a decimal type.
    func (ct ColumnType) DecimalSize() (precision int64, scale int64, ok bool) {
    	if ct.DecimalSizeValue.Valid {
    		return ct.DecimalSizeValue.Int64, ct.ScaleValue.Int64, true
    	}
    	return ct.SQLColumnType.DecimalSize()
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  3. tests/migrate_test.go

    	err = DB.AutoMigrate(&ArrayTypeModel{})
    	AssertEqual(t, nil, err)
    
    	ct, err := findColumnType(&ArrayTypeModel{}, "number")
    	AssertEqual(t, nil, err)
    	AssertEqual(t, "varchar", ct.DatabaseTypeName())
    
    	ct, err = findColumnType(&ArrayTypeModel{}, "text_array")
    	AssertEqual(t, nil, err)
    	AssertEqual(t, "text[]", ct.DatabaseTypeName())
    
    	ct, err = findColumnType(&ArrayTypeModel{}, "nested_text_array")
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. clause/clause.go

    		if c.AfterExpression != nil {
    			builder.WriteByte(' ')
    			c.AfterExpression.Build(builder)
    		}
    	}
    }
    
    const (
    	PrimaryKey   string = "~~~py~~~" // primary key
    	CurrentTable string = "~~~ct~~~" // current table
    	Associations string = "~~~as~~~" // associations
    )
    
    var (
    	currentTable  = Table{Name: CurrentTable}
    	PrimaryColumn = Column{Table: CurrentTable, Name: PrimaryKey}
    )
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Feb 02 09:15:08 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    func TestContainsRune(t *testing.T) {
    	for _, ct := range ContainsRuneTests {
    		if ContainsRune(ct.b, ct.r) != ct.expected {
    			t.Errorf("ContainsRune(%q, %q) = %v, want %v",
    				ct.b, ct.r, !ct.expected, ct.expected)
    		}
    	}
    }
    
    func TestContainsFunc(t *testing.T) {
    	for _, ct := range ContainsRuneTests {
    		if ContainsFunc(ct.b, func(r rune) bool {
    			return ct.r == r
    		}) != ct.expected {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top