alexedwards / scs

HTTP Session Management for Go
MIT License
2.02k stars 165 forks source link

Added an ability to change default table/column names for postgres store #190

Open Kraysent opened 6 months ago

Kraysent commented 6 months ago

One would have an ability to change default names of the table and columns:

New(db,
  WithSessionTableName("schema.session_table"),
  WithExpiryColumnName("expiry_date"),
  WithTokenColumnName("token"),
)

See https://github.com/alexedwards/scs/issues/180#issuecomment-1855552131 for details