messy
This commit is contained in:
parent
51a34008f1
commit
2dd8cc3d2b
9 changed files with 92 additions and 73 deletions
11
internal/database/claims_dao.go
Normal file
11
internal/database/claims_dao.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package database
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
func FindClaimsByBarcode(system string, barcode string) {
|
||||
ctx := context.Background()
|
||||
api.db.Exec("SELECT * FROM user_claims")
|
||||
|
||||
}
|
|
@ -36,7 +36,6 @@ func InitializeDatabase() *ksql.DB {
|
|||
|
||||
// createTables adds the product, automated_claims, and user_claims tables to the initialized database.
|
||||
func createTables(ctx context.Context, db ksql.DB) {
|
||||
|
||||
_, err := db.Exec(ctx, `
|
||||
CREATE TABLE IF NOT EXISTS products (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue