feat: custom query's #6

Merged
SoXX merged 3 commits from dev/issue-5 into main 2024-07-27 18:06:57 +00:00
Owner

added the ability to execute custom query's

added the ability to execute custom query's
SoXX added 1 commit 2024-07-27 17:45:53 +00:00
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
470681fd4f
added the ability to execute custom query's
Alphyron requested changes 2024-07-27 17:49:28 +00:00
Dismissed
@ -0,0 +7,4 @@
"gorm.io/gorm"
)
func ExecuteRawStatement(ctx context.Context, db *gorm.DB, query string, args ...any) (*sql.Rows, error) {
Owner

An Exec is an sql command without an return. You can use db.Exec instead,
Please create another functtion list QueryRawStatement to do the same with db.Raw

An Exec is an sql command without an return. You can use db.Exec instead, Please create another functtion list QueryRawStatement to do the same with db.Raw
Alphyron marked this conversation as resolved
SoXX added 1 commit 2024-07-27 17:49:54 +00:00
fix: wrong execution
All checks were successful
Gitea Build Check / Build (push) Successful in 2m27s
Gitea Build Check / Build (pull_request) Successful in 2m32s
d364078acc
fixed fucntion to use Exec insted of Raw.
Alphyron added a new dependency 2024-07-27 17:51:51 +00:00
Alphyron removed a dependency 2024-07-27 17:52:04 +00:00
SoXX added 1 commit 2024-07-27 18:01:25 +00:00
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
c2ab455d3e
fixed function for custom query's & added a function with return
Alphyron approved these changes 2024-07-27 18:02:17 +00:00
SoXX merged commit c2ab455d3e into main 2024-07-27 18:06:57 +00:00
SoXX deleted branch dev/issue-5 2024-07-27 18:06:58 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Anthrove/otter-space-sdk#6
No description provided.