Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2019 Changes in this version + const GraphQLAccountTypes + const GraphQLCommonTypes + var DBCtx = dbContext + var DefaultCursor = Cursor + var XOLog = func(string, ...interface{}) + func AccountsByBalanceGraphQL(ctx context.Context, args struct{ ... }) (*[]AccountResolver, error) + func Bool(b bool) sql.NullBool + func BoolPointer(b *bool) sql.NullBool + func CountAllAccount(db XODB, queryArgs *AccountQueryArguments) (int, error) + func DeleteAccountGraphQL(ctx context.Context, items []DeleteAccountInput) ([]graphql.ID, error) + func Float64(i float64) sql.NullFloat64 + func Float64Pointer(i *float64) sql.NullFloat64 + func GetAccountMutations() string + func GetAccountQueries() string + func GetRootSchema(extraQueries, extraMutations, extraTypes string) string + func Int64(i int64) sql.NullInt64 + func Int64Pointer(i *int64) sql.NullInt64 + 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 Account struct + Balance sql.NullFloat64 + ID int64 + func AccountByID(db XODB, id int64) (*Account, error) + func AccountsByBalance(db XODB, balance sql.NullFloat64) ([]*Account, error) + func GetAllAccount(db XODB, queryArgs *AccountQueryArguments) ([]*Account, error) + func GetMostRecentAccount(db XODB, n int) ([]*Account, error) + func GetMostRecentChangedAccount(db XODB, n int) ([]*Account, error) + func (a *Account) Delete(db XODB) error + func (a *Account) Deleted() bool + func (a *Account) Exists() bool + func (a *Account) Insert(db XODB) error + func (a *Account) Save(db XODB) error + func (a *Account) Update(db XODB) error + func (a *Account) Upsert(db XODB) error + type AccountConnectionResolver struct + func AllAccounts(ctx context.Context, queryArgs *AccountQueryArguments) (*AccountConnectionResolver, error) + func (r AccountConnectionResolver) Accounts() *[]*AccountResolver + func (r AccountConnectionResolver) Edges() *[]*AccountEdgeResolver + func (r AccountConnectionResolver) PageInfo() *PageInfoResolver + func (r AccountConnectionResolver) TotalCount() *int32 + type AccountEdgeResolver struct + func (r AccountEdgeResolver) Cursor() graphql.ID + func (r AccountEdgeResolver) Node() *AccountResolver + type AccountFilter struct + Balance *float64 + BalanceGt *float64 + BalanceGte *float64 + BalanceLt *float64 + BalanceLte *float64 + Conjunction *string + type AccountQueryArguments struct + Where *AccountFilter + func ApplyAccountQueryArgsDefaults(queryArgs *AccountQueryArguments) *AccountQueryArguments + type AccountResolver struct + func AccountByIDGraphQL(ctx context.Context, args struct{ ... }) (*AccountResolver, error) + func InsertAccountGraphQL(ctx context.Context, items []InsertAccountInput) ([]AccountResolver, error) + func NewAccountResolver(node *Account) *AccountResolver + func UpdateAccountGraphQL(ctx context.Context, items []UpdateAccountInput) ([]AccountResolver, error) + func (r AccountResolver) Balance() *float64 + func (r AccountResolver) 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 DeleteAccountInput struct + ID graphql.ID + type InsertAccountInput struct + Balance *float64 + 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) AccountByID(ctx context.Context, args struct{ ... }) (*AccountResolver, error) + func (RootResolver) AccountsByBalance(ctx context.Context, args struct{ ... }) (*[]AccountResolver, error) + func (RootResolver) AllAccounts(ctx context.Context, args *AccountQueryArguments) (*AccountConnectionResolver, error) + func (RootResolver) DeleteAccounts(ctx context.Context, args struct{ ... }) ([]graphql.ID, error) + func (RootResolver) InsertAccounts(ctx context.Context, args struct{ ... }) ([]AccountResolver, error) + func (RootResolver) UpdateAccounts(ctx context.Context, args struct{ ... }) ([]AccountResolver, 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 UpdateAccountInput struct + Balance *float64 + ID graphql.ID + type XODB interface + Exec func(string, ...interface{}) (sql.Result, error) + Query func(string, ...interface{}) (*sql.Rows, error) + QueryRow func(string, ...interface{}) *sql.Row