Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pathname (0.15 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)
    		}
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Dec 23 13:19:41 GMT 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) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top