Your Question
How to create an unlogged table in postgresql using GORM?
The expected SQL is:
CREATE UNLOGGED TABLE <table name>()
The .Set("gorm:table_options", " UNLOGGED ") will add UNLOGGED at the end of request. But it is required between CREATE and TABLE.
The document you expected this should be explained
Expected answer
Comment From: gshilin-sdb
Probably .Set("gorm:logged", "false") would be nice
Comment From: github-actions[bot]
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days