Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for createTable (0.18 sec)

  1. tests/postgres_test.go

    		t.Skip()
    	}
    
    	type Thing struct {
    		gorm.Model
    		SomeID  string
    		OtherID string
    		Data    string
    	}
    
    	DB.Migrator().DropTable(&Thing{})
    	DB.Migrator().CreateTable(&Thing{})
    	if err := DB.Exec("ALTER TABLE things ADD CONSTRAINT some_id_other_id_unique UNIQUE (some_id, other_id)").Error; err != nil {
    		t.Error(err)
    	}
    
    	thing := Thing{
    		SomeID:  "1234",
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Oct 08 09:16:32 GMT 2022
    - 6.4K bytes
    - Viewed (3)
  2. guava/src/com/google/common/collect/CompactHashMap.java

      /**
       * The hashtable object. This can be either:
       *
       * <ul>
       *   <li>a byte[], short[], or int[], with size a power of two, created by
       *       CompactHashing.createTable, whose values are either
       *       <ul>
       *         <li>UNSET, meaning "null pointer"
       *         <li>one plus an index into the keys, values, and entries arrays
       *       </ul>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  3. tests/migrate_test.go

    	for _, m := range allModels {
    		if !DB.Migrator().HasTable(m) {
    			t.Fatalf("Failed to create table for %#v", m)
    		}
    	}
    
    	DB.Scopes(func(db *gorm.DB) *gorm.DB {
    		return db.Table("ccc")
    	}).Migrator().CreateTable(&Company{})
    
    	if !DB.Migrator().HasTable("ccc") {
    		t.Errorf("failed to create table ccc")
    	}
    
    	for _, indexes := range [][2]string{
    		{"user_speaks", "fk_user_speaks_user"},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. schema/field_test.go

    		{Name: "Name", DBName: "", BindNames: []string{"Name"}, DataType: "", Tag: `gorm:"-"`, Creatable: false, Updatable: false, Readable: false},
    		{Name: "Name2", DBName: "name2", BindNames: []string{"Name2"}, DataType: schema.String, Tag: `gorm:"->"`, Creatable: false, Updatable: false, Readable: true},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 19 09:02:53 GMT 2022
    - 12.7K bytes
    - Viewed (0)
  5. cni/pkg/repair/monitoring.go

    // limitations under the License.
    
    package repair
    
    import (
    	"istio.io/istio/pkg/monitoring"
    )
    
    var (
    	typeLabel  = monitoring.CreateLabel("type")
    	deleteType = "delete"
    	repairType = "repair"
    	labelType  = "label"
    
    	resultLabel   = monitoring.CreateLabel("result")
    	resultSuccess = "success"
    	resultSkip    = "skip"
    	resultFail    = "fail"
    
    	podsRepaired = monitoring.NewSum(
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 1K bytes
    - Viewed (0)
  6. schema/schema_test.go

    					Tag: `gorm:"primarykey"`, Creatable: true, Updatable: true, Readable: true, PrimaryKey: true, Size: 64,
    				},
    				{
    					Name: "LanguageCode", DBName: "language_code", BindNames: []string{"LanguageCode"}, DataType: schema.String,
    					Tag: `gorm:"primarykey"`, Creatable: true, Updatable: true, Readable: true, PrimaryKey: true,
    				},
    			}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  7. schema/field.go

    		field.Creatable = false
    		field.Updatable = false
    		if strings.ToLower(v) == "false" {
    			field.Readable = false
    		} else {
    			field.Readable = true
    		}
    	}
    
    	if v, ok := field.TagSettings["<-"]; ok {
    		field.Creatable = true
    		field.Updatable = true
    
    		if v != "<-" {
    			if !strings.Contains(v, "create") {
    				field.Creatable = false
    			}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  8. cni/pkg/install/monitoring.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package install
    
    import "istio.io/istio/pkg/monitoring"
    
    var (
    	resultLabel                   = monitoring.CreateLabel("result")
    	resultSuccess                 = "SUCCESS"
    	resultCopyBinariesFailure     = "COPY_BINARIES_FAILURE"
    	resultCreateKubeConfigFailure = "CREATE_KUBECONFIG_FAILURE"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jul 17 20:25:52 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  9. schema/schema.go

    		}
    
    		bindName := field.BindName()
    		if field.DBName != "" {
    			// nonexistence or shortest path or first appear prioritized if has permission
    			if v, ok := schema.FieldsByDBName[field.DBName]; !ok || ((field.Creatable || field.Updatable || field.Readable) && len(field.BindNames) < len(v.BindNames)) {
    				if _, ok := schema.FieldsByDBName[field.DBName]; !ok {
    					schema.DBNames = append(schema.DBNames, field.DBName)
    				}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

        @BeforeAll
        protected static void initAll() {
            RestAssured.baseURI = getFessUrl();
            settingTestToken();
    
            // create and execute a file crawler
            labelId = createLabel();
            crawlLabelId = createCrawlLabel();
    
            createFileConfig();
            logger.info("FileConfig is created");
            refresh();
            fileConfigId = getFileConfigIds(NAME_PREFIX).get(0);
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 18.6K bytes
    - Viewed (1)
Back to top