Commit Graph

64 Commits

Author SHA1 Message Date
3e13046706 fix(query): added conditions
added the condition for the id
2024-08-09 22:44:55 +02:00
85d7905e8a refactor: renamed variables
- Update model references from `UserFavorites` to `UserFavorite` in multiple files.
- Adjust database queries and struct definitions accordingly to maintain consistency.
2024-08-09 22:43:58 +02:00
f798869ef5 feat(database): implementation of functions
Some checks failed
Gitea Build Check / Build (push) Failing after 28s
- Added functionality
- Add connection checks to `CreateUserSource`, `UpdateUserSource`, `GetUserSourceByID`, and `DeleteUserSource` functions.
- Introduce validation for empty and improperly formatted IDs in `UpdateUserSource`, `GetUserSourceByID`, and `DeleteUserSource`.
- Handle duplicate key errors and record not found errors with appropriate custom error messages.
2024-08-09 22:16:03 +02:00
598ca747eb refactor(types): using correct types 2024-08-09 22:14:56 +02:00
b8e29de4fc refactor(error): error handling in database package
- Replace custom error types with string constants for common database errors.
- Simplify the Database struct to include a Reason field for error messages.
- Update Error method to format the error output using the Reason.
- Modify validation error constants for consistency and clarity.
2024-08-09 22:14:13 +02:00
fefc777888 feat(impl): Add database client and migration functionality
Implement connection to PostgreSQL database using GORM. Embed SQL migrations and handle migration execution with logging capabilities. Define configuration structure for database settings.
2024-08-09 21:39:22 +02:00
f940f22d67 chore(impl): removed old functions
removed all old implementation of the SDK

BREAKING-CHANGE: breaks database compatibility to older SDK versions
2024-08-09 21:38:35 +02:00
0e6a8fd61e feat(database): added additional columns
added more columns

BREAKING-CHANGE: breaks database compatibility to older SDK versions
2024-08-09 21:37:54 +02:00
e62280a416 feat(database): added additional columns
added more columns

BREAKING-CHANGE: breaks database compatibility to older SDK versions
2024-08-09 21:37:27 +02:00
c2ab455d3e feat: custom query's
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 2m33s
Gitea Build Check / Build (push) Successful in 2m25s
fixed function for custom query's & added a function with return
2024-07-27 20:01:06 +02:00
470681fd4f feat: custom query's
All checks were successful
Gitea Build Check / Build (push) Successful in 2m31s
Gitea Build Check / Build (pull_request) Successful in 2m26s
added the ability to execute custom query's
2024-07-27 19:41:41 +02:00
6aa1c2b7b6 chore: fix module path & updated dependencies 2024-07-22 11:11:48 +02:00
373d31dd15 fix: change old git urls to anthrove urls
All checks were successful
Gitea Build Check / Build (push) Successful in 5m33s
Gitea Build Check / Build (pull_request) Successful in 5m11s
2024-07-19 22:01:04 +02:00
34c001473b migration from old git (no git history)
Some checks failed
Gitea Build Check / Build (push) Failing after 11m27s
2024-07-19 10:03:35 +02:00