Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Column Name Mapping in Options #74

Open
david-ort opened this issue May 29, 2024 · 2 comments
Open

Add Support for Column Name Mapping in Options #74

david-ort opened this issue May 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@david-ort
Copy link

Summary:

Add support for column name mapping in the options object to allow developers customize the names of the columns used to store session data in the database.

Description:

Currently, the package uses a set of predefined column names for storing session data (e.g., sid, session, expires). To enhance flexibility and integration with existing databases, it would be beneficial to allow developers to map these column names to custom names of their choosing.

Motivation:

  • Database Integration: Many applications need to integrate with pre-existing databases that may have different naming conventions or existing columns for session data.
  • Flexibility: Customizable column names can help avoid conflicts with other tables or columns in the database.
  • Consistency: Developers can maintain consistency in their database schema by aligning session table column names with their project's naming conventions.

I know it might seem like a small thing, but I think it would be useful.

@david-ort david-ort added the enhancement New feature or request label May 29, 2024
@JLuboff
Copy link
Owner

JLuboff commented May 29, 2024

@david-ort Not a small thing at all! I think this is a great idea. I'll try to get to this this week.

@JLuboff
Copy link
Owner

JLuboff commented Jun 11, 2024

This is still a WIP. I started working on it, but have been swamped with work/home life. Will continue with it when time permits. Thank you in advance for your patience :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants