Bring back materialized view generation (#321)

This commit is contained in:
Daniel Bershatsky authored and GitHub committed 2025-06-10 12:18:46 -04:00
1 parent 368eebb8a7
commit 16bd2372a7
3 files changed
+78 -5

No files matched your search

+22
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
}