Bring back materialized view generation (#321)
This commit is contained in:
committed by
GitHub
parent
368eebb8a7
commit
16bd2372a7
22
cmd/schemagen/testdata/models.go
vendored
22
cmd/schemagen/testdata/models.go
vendored
@@ -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