Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
2 answers
566 views

How to cause Buffalo transaction middleware to commit?

In trying to use the buffalo-pop/pop/popmw Transaction middleware, I am not having success writing to the database. No errors are returned, and the debug output shows the SQL statements, but the ...
Schparky's user avatar
  • 446
0 votes
0 answers
139 views

gobuffalo tx.Eager().Create causing error “could not set '%!s(int64=15)' to '<invalid reflect.Value>' ”

I'm trying to write data to PostgreSQL database with relationships using this code. req := c.Request() tx := c.Value("tx").(*pop.Connection) user := &models.User{} if req.FormValue("user_type")...
Muhammad Rahimov's user avatar
1 vote
2 answers
819 views

restfull api on model with foreign-key

TLDR; How to create REST api on model having Foreign key (or db relationship in general) in buffalo framework? I am absolute beginner in go and I am trying to write an RESTFul service using buffalo ...
varnothing's user avatar
  • 1,299