• Peter Fern's avatar
    Add support for basic type pointer fields · d7c3727f
    Peter Fern authored
    Allows models like:
    
    ```
    type User struct {
    	Id    int64
    	Name  string
    	Email *string `orm:"null"`
    }
    ```
    
    This helps a lot when doing JSON marshalling/unmarshalling.
    
    Pointer fields should always be declared with the NULL orm tag for sanity, this
    probably requires documentation.
    d7c3727f
Name
Last commit
Last update
..
README.md Loading commit data...
cmd.go Loading commit data...
cmd_utils.go Loading commit data...
db.go Loading commit data...
db_alias.go Loading commit data...
db_mysql.go Loading commit data...
db_oracle.go Loading commit data...
db_postgres.go Loading commit data...
db_sqlite.go Loading commit data...
db_tables.go Loading commit data...
db_utils.go Loading commit data...
models.go Loading commit data...
models_boot.go Loading commit data...
models_fields.go Loading commit data...
models_info_f.go Loading commit data...
models_info_m.go Loading commit data...
models_test.go Loading commit data...
models_utils.go Loading commit data...
orm.go Loading commit data...
orm_conds.go Loading commit data...
orm_log.go Loading commit data...
orm_object.go Loading commit data...
orm_querym2m.go Loading commit data...
orm_queryset.go Loading commit data...
orm_raw.go Loading commit data...
orm_test.go Loading commit data...
types.go Loading commit data...
utils.go Loading commit data...