package
1.0.0
Repository: https://github.com/gunsluo/go-example.git
Documentation: pkg.go.dev

# Functions

AccountByID retrieves a row from 'accounts' as a Account.
AccountByIDGraphQL retrieves a row from 'accounts' as a Account.
AccountsByBalance retrieves a row from 'accounts' as a Account.
AccountsByBalanceGraphQL retrieves a row from 'accounts' as a Account.
AllAccounts is the GraphQL end point for GetAllAccount.
ApplyAccountQueryArgsDefaults assigns default cursor values to non-nil fields.
Bool returns a nullable bool.
BoolPointer converts bool pointer to sql.NullBool.
CountAllAccount returns a count of all rows from 'luoji.accounts'.
DeleteAccountGraphQL is the GraphQL end point for DeleteAccount.
Float64 returns a nullable float64.
Float64Pointer converts a float64 pointer to sql.NullFloat64.
No description provided by the author
No description provided by the author
GetAllAccount returns all rows from 'luoji.accounts', based on the AccountQueryArguments.
GetMostRecentAccount returns n most recent rows from 'luoji.accounts', ordered by "created_date" in descending order.
GetMostRecentChangedAccount returns n most recent rows from 'luoji.accounts', ordered by "changed_date" in descending order.
No description provided by the author
InsertAccountGraphQL is the GraphQL end point for InsertAccount.
Int64 returns a nullable int64.
Int64Pointer converts a int64 pointer to sql.NullInt64.
No description provided by the author
PointerBool converts bool to pointer to bool.
PointerFloat64 converts sql.NullFloat64 to pointer to float64.
PointerFloat64SqlFloat64 converts sql.NullFloat64 pointer to graphql.ID pointer.
PointerGqlTime converts pq.NullType to pointer to graphql.Time.
PointerInt64 converts sql.NullInt64 to pointer to int64.
PointerString converts sql.NullString to pointer to string.
PointerStringFloat64 converts Float64 pointer to string pointer.
PointerStringInt64 converts Int64 pointer to string pointer.
PointerStringSqlInt64 converts sql.NullInt64 pointer to graphql.ID pointer.
PointerTime converts pq.NullTIme to pointer to time.Time.
String returns a nullable string.
StringPointer converts string pointer to sql.NullString.
Time returns a nullable Time.
TimeGqlPointer converts graphql.Time pointer to pq.NullTime.
TimePointer converts time.Time pointer to pq.NullTime.
UpdateAccountGraphQL is the GraphQL end point for UpdateAccount.

# Constants

GraphQLAccountTypes specifies the GraphQL types for Account.
GraphQL related types.

# Variables

DBCtx is the key for setting DB Context.WithValue.
DefaultCursor will get the 50 first non-deleted IDs from a table.
XOLog provides the log func used by generated queries.

# Structs

Account represents a row from 'accounts'.
AccountConnectionResolver defines a GraphQL resolver for AccountConnection.
AccountEdgeResolver defines the Account edge.
AccountFilter related to AccountQueryArguments struct field name contain table column name in Camel style and logic operator(lt, gt etc) only indexed column and special column defined in sqlSpecColFilterCtlMap declared in file xo/internal/funcs.go.
AccountQueryArguments composed by Cursor, AccountFilter and sql filter string.
AccountResolver defines the GraphQL resolver for 'Account'.
Cursor specifies an index to sort by, the direction of the sort, an offset, and a limit.
DeleteAccountInput defines the delete Account mutation input.
InsertAccountInput defines the insert Account mutation input.
PageInfoResolver defines the GraphQL PageInfo type.
No description provided by the author
UpdateAccountInput defines the update Account mutation input.

# Interfaces

ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
XODB is the common interface for database operations that can be used with types from schema 'luoji'.

# Type aliases

Slice is a slice of ScannerValuers.
StringSlice is a slice of strings.