Pre-release clean up.
This commit is contained in:
parent
23a27033a4
commit
b817f57035
27 changed files with 628 additions and 79 deletions
20
examples/quick-start/.gen/jetdb/dvds/model/actor.go
Normal file
20
examples/quick-start/.gen/jetdb/dvds/model/actor.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
// Generated at Wednesday, 17-Jul-19 13:11:01 CEST
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Actor struct {
|
||||
ActorID int32 `sql:"primary_key"`
|
||||
FirstName string
|
||||
LastName string
|
||||
LastUpdate time.Time
|
||||
}
|
||||
19
examples/quick-start/.gen/jetdb/dvds/model/category.go
Normal file
19
examples/quick-start/.gen/jetdb/dvds/model/category.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
// Generated at Wednesday, 17-Jul-19 13:11:01 CEST
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Category struct {
|
||||
CategoryID int32 `sql:"primary_key"`
|
||||
Name string
|
||||
LastUpdate time.Time
|
||||
}
|
||||
29
examples/quick-start/.gen/jetdb/dvds/model/film.go
Normal file
29
examples/quick-start/.gen/jetdb/dvds/model/film.go
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
// Generated at Wednesday, 17-Jul-19 13:11:01 CEST
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Film struct {
|
||||
FilmID int32 `sql:"primary_key"`
|
||||
Title string
|
||||
Description *string
|
||||
ReleaseYear *int32
|
||||
LanguageID int16
|
||||
RentalDuration int16
|
||||
RentalRate float64
|
||||
Length *int16
|
||||
ReplacementCost float64
|
||||
Rating *MpaaRating
|
||||
LastUpdate time.Time
|
||||
SpecialFeatures *string
|
||||
Fulltext string
|
||||
}
|
||||
19
examples/quick-start/.gen/jetdb/dvds/model/film_actor.go
Normal file
19
examples/quick-start/.gen/jetdb/dvds/model/film_actor.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
// Generated at Wednesday, 17-Jul-19 13:11:01 CEST
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type FilmActor struct {
|
||||
ActorID int16 `sql:"primary_key"`
|
||||
FilmID int16 `sql:"primary_key"`
|
||||
LastUpdate time.Time
|
||||
}
|
||||
19
examples/quick-start/.gen/jetdb/dvds/model/film_category.go
Normal file
19
examples/quick-start/.gen/jetdb/dvds/model/film_category.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
// Generated at Wednesday, 17-Jul-19 13:11:01 CEST
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type FilmCategory struct {
|
||||
FilmID int16 `sql:"primary_key"`
|
||||
CategoryID int16 `sql:"primary_key"`
|
||||
LastUpdate time.Time
|
||||
}
|
||||
19
examples/quick-start/.gen/jetdb/dvds/model/language.go
Normal file
19
examples/quick-start/.gen/jetdb/dvds/model/language.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
// Generated at Wednesday, 17-Jul-19 13:11:01 CEST
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Language struct {
|
||||
LanguageID int32 `sql:"primary_key"`
|
||||
Name string
|
||||
LastUpdate time.Time
|
||||
}
|
||||
48
examples/quick-start/.gen/jetdb/dvds/model/mpaa_rating.go
Normal file
48
examples/quick-start/.gen/jetdb/dvds/model/mpaa_rating.go
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
// Generated at Wednesday, 17-Jul-19 13:11:01 CEST
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import "errors"
|
||||
|
||||
type MpaaRating string
|
||||
|
||||
const (
|
||||
MpaaRating_G MpaaRating = "G"
|
||||
MpaaRating_Pg MpaaRating = "PG"
|
||||
MpaaRating_Pg13 MpaaRating = "PG-13"
|
||||
MpaaRating_R MpaaRating = "R"
|
||||
MpaaRating_Nc17 MpaaRating = "NC-17"
|
||||
)
|
||||
|
||||
func (e *MpaaRating) Scan(value interface{}) error {
|
||||
if v, ok := value.(string); !ok {
|
||||
return errors.New("jet: Invalid data for MpaaRating enum")
|
||||
} else {
|
||||
switch string(v) {
|
||||
case "G":
|
||||
*e = MpaaRating_G
|
||||
case "PG":
|
||||
*e = MpaaRating_Pg
|
||||
case "PG-13":
|
||||
*e = MpaaRating_Pg13
|
||||
case "R":
|
||||
*e = MpaaRating_R
|
||||
case "NC-17":
|
||||
*e = MpaaRating_Nc17
|
||||
default:
|
||||
return errors.New("jet: Inavlid data " + string(v) + "for MpaaRating enum")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func (e MpaaRating) String() string {
|
||||
return string(e)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue