Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for tabret (0.07 sec)

  1. statement_test.go

    	}
    }
    
    func TestNameMatcher(t *testing.T) {
    	for k, v := range map[string][]string{
    		"table.name":         {"table", "name"},
    		"`table`.`name`":     {"table", "name"},
    		"'table'.'name'":     {"table", "name"},
    		"'table'.name":       {"table", "name"},
    		"table1.name_23":     {"table1", "name_23"},
    		"`table_1`.`name23`": {"table_1", "name23"},
    		"'table23'.'name_1'": {"table23", "name_1"},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Dec 23 13:19:41 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. migrator.go

    	ScanType() reflect.Type
    	Comment() (value string, ok bool)
    	DefaultValue() (value string, ok bool)
    }
    
    type Index interface {
    	Table() string
    	Name() string
    	Columns() []string
    	PrimaryKey() (isPrimaryKey bool, ok bool)
    	Unique() (unique bool, ok bool)
    	Option() string
    }
    
    // TableType table type interface
    type TableType interface {
    	Schema() string
    	Name() string
    	Type() string
    	Comment() (comment string, ok bool)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. tests/error_translator_test.go

    		return
    	}
    
    	DB.Migrator().DropTable(&City{}, &Museum{})
    
    	if err = db.AutoMigrate(&City{}, &Museum{}); err != nil {
    		t.Fatalf("failed to migrate countries & cities tables, got error: %v", err)
    	}
    
    	city := City{Name: "Amsterdam"}
    
    	err = db.Create(&city).Error
    	if err != nil {
    		t.Fatalf("failed to create city: %v", err)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jul 12 13:21:22 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. schema/naming.go

    )
    
    // Namer namer interface
    type Namer interface {
    	TableName(table string) string
    	SchemaName(table string) string
    	ColumnName(table, column string) string
    	JoinTableName(joinTable string) string
    	RelationshipFKName(Relationship) string
    	CheckerName(table, column string) string
    	IndexName(table, column string) string
    	UniqueName(table, column string) string
    }
    
    // Replacer replacer interface like strings.Replacer
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top