Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for matchName (0.04 sec)

  1. statement_test.go

    		"User__Company.*":    {"User__Company", "*"},
    		"`User__Company`.*":  {"User__Company", "*"},
    		`"User__Company".*`:  {"User__Company", "*"},
    		`"table"."*"`:        {"", ""},
    	} {
    		if table, column := matchName(k); table != v[0] || column != v[1] {
    			t.Errorf("failed to match value: %v, got %v, expect: %v", k, []string{table, column}, v)
    		}
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Dec 23 13:19:41 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. statement.go

    		for _, name := range fields {
    			if field := stmt.Schema.LookUpField(name); field != nil {
    				if changed(field) {
    					return true
    				}
    			}
    		}
    	}
    
    	return false
    }
    
    var matchName = func() func(tableColumn string) (table, column string) {
    	nameMatcher := regexp.MustCompile(`^(?:\W?(\w+?)\W?\.)?(?:(\*)|\W?(\w+?)\W?)$`)
    	return func(tableColumn string) (table, column string) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
Back to top