These are chat archives for jinzhu/gorm

Sep 2016
Thomas Boerger
Sep 06 2016 18:39 UTC
OMG… sqlite driver tries to insert foreign keys -.-
DEBU[0000] ALTER TABLE "team_users" ADD CONSTRAINT team_users_team_id_teams_id_foreign FOREIGN KEY (team_id) REFERENCES teams(id) ON DELETE RESTRICT ON UPDATE RESTRICT;  source=/Users/thomas/Developer/golang/src/ took=1.618768ms
Vignesh Murugesan
Sep 06 2016 23:48 UTC
[reposting just to confirm. I cudnt find any way looking at gorm the source.] Is there a way to specify a transaction as read-only?