Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2019 Changes in this version + const GraphQLCommonTypes + var DBCtx = dbContext + var DefaultCursor = Cursor + var GraphQLCountryAPIs = map[string]string + var GraphQLCountryTypes = ... + var LogCtx = loggerContext + var VerifierCtx = verifierContext + var XOLog = func(string, ...interface{}) + func Bool(b bool) sql.NullBool + func BoolPointer(b *bool) sql.NullBool + func CountAllCountry(db XODB, queryArgs *CountryQueryArguments) (int, error) + func DeleteCountryGraphQL(ctx context.Context, items []DeleteCountryInput) ([]graphql.ID, error) + func Float64(i float64) sql.NullFloat64 + func Float64Pointer(i *float64) sql.NullFloat64 + func GetCountryMutations() string + func GetCountryQueries() string + func GetResolverAPIs(includeAPIs map[string]string, excludeAPIs []string) map[string]string + func GetRootSchema(extraQueries, extraMutations, extraTypes string) string + func Int64(i int64) sql.NullInt64 + func Int64Pointer(i *int64) sql.NullInt64 + func Log(ctx context.Context) logrus.FieldLogger + func PointerBool(b sql.NullBool) *bool + func PointerFloat64(i sql.NullFloat64) *float64 + func PointerFloat64SqlFloat64(i sql.NullFloat64) *float64 + func PointerGqlTime(t pq.NullTime) *graphql.Time + func PointerInt64(i sql.NullInt64) *int64 + func PointerString(s sql.NullString) *string + func PointerStringFloat64(i *float64) *string + func PointerStringInt64(i *int64) *string + func PointerStringSqlInt64(i sql.NullInt64) *string + func PointerTime(t pq.NullTime) *time.Time + func String(s string) sql.NullString + func StringPointer(s *string) sql.NullString + func Time(t time.Time) pq.NullTime + func TimeGqlPointer(t *graphql.Time) pq.NullTime + func TimePointer(t *time.Time) pq.NullTime + type Country struct + ChangedDate pq.NullTime + CountryActive sql.NullBool + CountryBnum sql.NullInt64 + CountryCode string + CountryLogo sql.NullString + CountryName string + CountryNum sql.NullInt64 + CountrySnum sql.NullInt64 + CreatedDate pq.NullTime + DeletedDate pq.NullTime + ID int64 + func CountryByCountryCode(db XODB, countryCode string) (*Country, error) + func CountryByCountryName(db XODB, countryName string) (*Country, error) + func CountryByID(db XODB, id int64) (*Country, error) + func GetAllCountry(db XODB, queryArgs *CountryQueryArguments) ([]*Country, error) + func GetMostRecentChangedCountry(db XODB, n int) ([]*Country, error) + func GetMostRecentCountry(db XODB, n int) ([]*Country, error) + func (c *Country) Delete(db XODB) error + func (c *Country) Deleted() bool + func (c *Country) Exists() bool + func (c *Country) Insert(db XODB) error + func (c *Country) Save(db XODB) error + func (c *Country) Update(db XODB) error + func (c *Country) Upsert(db XODB) error + type CountryConnectionResolver struct + func AllCountries(ctx context.Context, queryArgs *CountryQueryArguments) (*CountryConnectionResolver, error) + func NewCountryConnectionResolver(data []*Country, count int) *CountryConnectionResolver + func (r CountryConnectionResolver) Countries() *[]*CountryResolver + func (r CountryConnectionResolver) Edges() *[]*CountryEdgeResolver + func (r CountryConnectionResolver) PageInfo() *PageInfoResolver + func (r CountryConnectionResolver) TotalCount() *int32 + type CountryEdgeResolver struct + func (r CountryEdgeResolver) Cursor() graphql.ID + func (r CountryEdgeResolver) Node() *CountryResolver + type CountryFilter struct + Conjunction *string + CountryCode *string + CountryCodeILike *string + CountryCodeLike *string + CountryCodeNILike *string + CountryCodeNLike *string + CountryName *string + CountryNameILike *string + CountryNameLike *string + CountryNameNILike *string + CountryNameNLike *string + type CountryQueryArguments struct + Where *CountryFilter + func ApplyCountryQueryArgsDefaults(queryArgs *CountryQueryArguments) *CountryQueryArguments + type CountryResolver struct + func CountryByCountryCodeGraphQL(ctx context.Context, args struct{ ... }) (*CountryResolver, error) + func CountryByCountryNameGraphQL(ctx context.Context, args struct{ ... }) (*CountryResolver, error) + func CountryByIDGraphQL(ctx context.Context, args struct{ ... }) (*CountryResolver, error) + func InsertCountryGraphQL(ctx context.Context, items []InsertCountryInput) ([]CountryResolver, error) + func NewCountryResolver(node *Country) *CountryResolver + func UpdateCountryGraphQL(ctx context.Context, items []UpdateCountryInput) ([]CountryResolver, error) + func (r CountryResolver) ChangedDate() *graphql.Time + func (r CountryResolver) CountryActive() *bool + func (r CountryResolver) CountryBnum() *string + func (r CountryResolver) CountryCode() string + func (r CountryResolver) CountryLogo() *string + func (r CountryResolver) CountryName() string + func (r CountryResolver) CountryNum() *string + func (r CountryResolver) CountrySnum() *string + func (r CountryResolver) CreatedDate() *graphql.Time + func (r CountryResolver) DeletedDate() *graphql.Time + func (r CountryResolver) ID() graphql.ID + type Cursor struct + After *graphql.ID + Before *graphql.ID + Dead *bool + Desc *bool + First *int32 + Index *string + Last *int32 + Limit *int32 + Offset *int32 + type DeleteCountryInput struct + ID graphql.ID + type InsertCountryInput struct + ChangedDate *graphql.Time + CountryActive *bool + CountryBnum *string + CountryCode string + CountryLogo *string + CountryName string + CountryNum *string + CountrySnum *string + CreatedDate *graphql.Time + DeletedDate *graphql.Time + type PageInfoResolver struct + func (r PageInfoResolver) EndCursor() *graphql.ID + func (r PageInfoResolver) HasNextPage() bool + func (r PageInfoResolver) HasPreviousPage() bool + func (r PageInfoResolver) StartCursor() *graphql.ID + type RootResolver struct + func (RootResolver) AllCountries(ctx context.Context, args *CountryQueryArguments) (*CountryConnectionResolver, error) + func (RootResolver) CountryByCountryCode(ctx context.Context, args struct{ ... }) (*CountryResolver, error) + func (RootResolver) CountryByCountryName(ctx context.Context, args struct{ ... }) (*CountryResolver, error) + func (RootResolver) CountryByID(ctx context.Context, args struct{ ... }) (*CountryResolver, error) + func (RootResolver) DeleteCountries(ctx context.Context, args struct{ ... }) ([]graphql.ID, error) + func (RootResolver) InsertCountries(ctx context.Context, args struct{ ... }) ([]CountryResolver, error) + func (RootResolver) UpdateCountries(ctx context.Context, args struct{ ... }) ([]CountryResolver, error) + type ScannerValuer interface + type Slice []ScannerValuer + type StringSlice []string + func (ss *StringSlice) Scan(src interface{}) error + func (ss StringSlice) Value() (driver.Value, error) + type UpdateCountryInput struct + ChangedDate *graphql.Time + CountryActive *bool + CountryBnum *string + CountryCode *string + CountryLogo *string + CountryName *string + CountryNum *string + CountrySnum *string + CreatedDate *graphql.Time + DeletedDate *graphql.Time + ID graphql.ID + type Verifier interface + VerifyAC func(ctx context.Context, resourceID, action string, args interface{}) error + VerifyRefAC func(ctx context.Context, resourceID, action string, args interface{}) error + type XODB interface + Exec func(string, ...interface{}) (sql.Result, error) + Query func(string, ...interface{}) (*sql.Rows, error) + QueryRow func(string, ...interface{}) *sql.Row