These are chat archives for jinzhu/gorm

6th
Sep 2016
Thomas Boerger
@tboerger
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/github.com/umschlag/umschlag-api/store/data/migration.go:76 took=1.618768ms
Vignesh Murugesan
@vignesh_wiz_twitter
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?