- Replace log.Faltal with error wrapping in schemagen func - Simplify tests, use temp dir and ioutil functions, remove boilerplate code - In test use schemagen keyspace to avoid name conflict with examples - Change template
44 lines
603 B
Plaintext
44 lines
603 B
Plaintext
// Code generated by "gocqlx/cmd/schemagen"; DO NOT EDIT.
|
|
|
|
package foobar
|
|
|
|
import "github.com/scylladb/gocqlx/v2/table"
|
|
|
|
// Table models.
|
|
var (
|
|
Playlists = table.New(table.Metadata{
|
|
Name: "playlists",
|
|
Columns: []string{
|
|
"album",
|
|
"artist",
|
|
"id",
|
|
"song_id",
|
|
"title",
|
|
},
|
|
PartKey: []string{
|
|
"id",
|
|
},
|
|
SortKey: []string{
|
|
"title",
|
|
"album",
|
|
"artist",
|
|
},
|
|
})
|
|
|
|
Songs = table.New(table.Metadata{
|
|
Name: "songs",
|
|
Columns: []string{
|
|
"album",
|
|
"artist",
|
|
"data",
|
|
"id",
|
|
"tags",
|
|
"title",
|
|
},
|
|
PartKey: []string{
|
|
"id",
|
|
},
|
|
SortKey: []string{},
|
|
})
|
|
)
|