Fix #12: ydb course repository migrate to new v3 #13
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-12"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated fix via OpenCode Engine.
Changes
ydb_course_repository.gousing modern ydb-go-sdk/v3 API patterns:BulkUpsertfor batch inserts (replaces manualREPLACE INTO ... FROM AS_TABLE)DoTxfor write operations (DELETE, UPDATE)OnlineReadOnlyTxControl()for reads (replaces manual TxControl construction)ListStatisticsmethod (required by CourseRepository interface)GetByExternalIDimplementationservice.go(was returning "ydb is no longer supported")Verification
go vet ./...✅go build ./...✅go test ./...✅ (all existing tests pass)Closes #12