Bring back materialized view generation (#321)
This commit is contained in:
1 parent
368eebb8a7
commit
16bd2372a7
3 files changed
+78
-5
No files matched your search
Vendored
+22
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user