Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for singular (0.18 sec)

  1. schema/naming.go

    func (ns NamingStrategy) SchemaName(table string) string {
    	table = strings.TrimPrefix(table, ns.TablePrefix)
    
    	if ns.SingularTable {
    		return ns.toSchemaName(table)
    	}
    	return ns.toSchemaName(inflection.Singular(table))
    }
    
    // ColumnName convert string to column name
    func (ns NamingStrategy) ColumnName(table, column string) string {
    	return ns.toDBName(column)
    }
    
    // JoinTableName convert string to join table name
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  2. schema/relationship.go

    		joinFieldName := strings.Title(relation.FieldSchema.Name) + relField.Name
    
    		if _, ok := ownFieldsMap[joinFieldName]; ok {
    			if field.Name != relation.FieldSchema.Name {
    				joinFieldName = inflection.Singular(field.Name) + relField.Name
    			} else {
    				joinFieldName += "Reference"
    			}
    		}
    
    		if len(joinReferences) > idx {
    			joinFieldName = strings.Title(joinReferences[idx])
    		}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
Back to top