• Kyle McCullough's avatar
    Add a ReadOrCreate method: · 190039b6
    Kyle McCullough authored
    m := &User{Name: "Kyle"}
    // Returns a boolean indicating whether the object was created,
    // the primary key of the object, or an error.
    created, id, err := orm.ReadOrCreate(m, "Name")
    190039b6
orm_test.go 46.1 KB