Bring back materialized view generation (#321)

This commit is contained in:
Daniel Bershatsky
2025-06-10 19:18:46 +03:00
committed by GitHub
parent 368eebb8a7
commit 16bd2372a7
3 changed files with 78 additions and 5 deletions

View File

@@ -47,6 +47,23 @@ var (
})
)
// Materialized view models.
var (
ComposersByName = table.New(table.Metadata{
Name: "composers_by_name",
Columns: []string{
"id",
"name",
},
PartKey: []string{
"id",
},
SortKey: []string{
"name",
},
})
)
type AlbumUserType struct {
gocqlx.UDT
Name string
@@ -69,3 +86,8 @@ type SongsStruct struct {
Tags []string
Title string
}
type ComposersByNameStruct struct {
Id [16]byte
Name string
}