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

Yurii dev #49

Merged
merged 11 commits into from
Dec 15, 2023
Merged

Yurii dev #49

merged 11 commits into from
Dec 15, 2023

Conversation

Pomog
Copy link
Owner

@Pomog Pomog commented Dec 14, 2023

comments, readme, some error handling

@Pomog
Copy link
Owner Author

Pomog commented Dec 14, 2023

  1. Modified GetDB function to return a new instance of *DataBase for each application instance.
  2. Implemented MakeDBTables to create necessary database tables using the provided *sql.DB instance.

Comments:

  • GetDB: The modification ensures that each application instance has a dedicated database connection, enhancing isolation and handling for multiple users.

  • MakeDBTables: This function is designed to be called with a fresh database connection, allowing proper initialization of tables and ensuring robust handling for scenarios with multiple users.

@TartuDen TartuDen merged commit 620b943 into main Dec 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants