Documentation ¶
Overview ¶
Package dbxclient contains the client to interact with the dbx api
Index ¶
- Constants
- Variables
- func WithAuthorization(accessToken string, session string) clientv2.RequestInterceptor
- func WithEmptyInterceptor() clientv2.RequestInterceptor
- func WithLoggingInterceptor() clientv2.RequestInterceptor
- type Client
- func (c *Client) CreateDatabase(ctx context.Context, input CreateDatabaseInput, ...) (*CreateDatabase, error)
- func (c *Client) CreateGroup(ctx context.Context, input CreateGroupInput, ...) (*CreateGroup, error)
- func (c *Client) DeleteDatabase(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*DeleteDatabase, error)
- func (c *Client) DeleteGroup(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*DeleteGroup, error)
- func (c *Client) GetAllDatabases(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllDatabases, error)
- func (c *Client) GetAllGroups(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroups, error)
- func (c *Client) GetDatabase(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*GetDatabase, error)
- func (c *Client) GetGroup(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*GetGroup, error)
- type Config
- type CreateDatabase
- type CreateDatabaseInput
- type CreateDatabase_CreateDatabase
- type CreateDatabase_CreateDatabase_Database
- func (t *CreateDatabase_CreateDatabase_Database) GetDsn() string
- func (t *CreateDatabase_CreateDatabase_Database) GetGeo() *string
- func (t *CreateDatabase_CreateDatabase_Database) GetID() string
- func (t *CreateDatabase_CreateDatabase_Database) GetName() string
- func (t *CreateDatabase_CreateDatabase_Database) GetOrganizationID() string
- func (t *CreateDatabase_CreateDatabase_Database) GetProvider() *enums.DatabaseProvider
- func (t *CreateDatabase_CreateDatabase_Database) GetStatus() *enums.DatabaseStatus
- type CreateGroup
- type CreateGroupInput
- type CreateGroup_CreateGroup
- type CreateGroup_CreateGroup_Group
- func (t *CreateGroup_CreateGroup_Group) GetDescription() *string
- func (t *CreateGroup_CreateGroup_Group) GetID() string
- func (t *CreateGroup_CreateGroup_Group) GetLocations() []string
- func (t *CreateGroup_CreateGroup_Group) GetName() string
- func (t *CreateGroup_CreateGroup_Group) GetPrimaryLocation() string
- func (t *CreateGroup_CreateGroup_Group) GetRegion() *enums.Region
- type Database
- type DatabaseConnection
- type DatabaseCreatePayload
- type DatabaseDeletePayload
- type DatabaseEdge
- type DatabaseUpdatePayload
- type DatabaseWhereInput
- type Dbxclient
- type DeleteDatabase
- type DeleteDatabase_DeleteDatabase
- type DeleteGroup
- type DeleteGroup_DeleteGroup
- type GetAllDatabases
- type GetAllDatabases_Databases
- type GetAllDatabases_Databases_Edges
- type GetAllDatabases_Databases_Edges_Node
- func (t *GetAllDatabases_Databases_Edges_Node) GetDsn() string
- func (t *GetAllDatabases_Databases_Edges_Node) GetGeo() *string
- func (t *GetAllDatabases_Databases_Edges_Node) GetID() string
- func (t *GetAllDatabases_Databases_Edges_Node) GetName() string
- func (t *GetAllDatabases_Databases_Edges_Node) GetOrganizationID() string
- func (t *GetAllDatabases_Databases_Edges_Node) GetProvider() *enums.DatabaseProvider
- func (t *GetAllDatabases_Databases_Edges_Node) GetStatus() *enums.DatabaseStatus
- type GetAllGroups
- type GetAllGroups_Groups
- type GetAllGroups_Groups_Edges
- type GetAllGroups_Groups_Edges_Node
- func (t *GetAllGroups_Groups_Edges_Node) GetDescription() *string
- func (t *GetAllGroups_Groups_Edges_Node) GetID() string
- func (t *GetAllGroups_Groups_Edges_Node) GetLocations() []string
- func (t *GetAllGroups_Groups_Edges_Node) GetName() string
- func (t *GetAllGroups_Groups_Edges_Node) GetPrimaryLocation() string
- func (t *GetAllGroups_Groups_Edges_Node) GetRegion() *enums.Region
- type GetDatabase
- type GetDatabase_Database
- func (t *GetDatabase_Database) GetDsn() string
- func (t *GetDatabase_Database) GetGeo() *string
- func (t *GetDatabase_Database) GetID() string
- func (t *GetDatabase_Database) GetName() string
- func (t *GetDatabase_Database) GetOrganizationID() string
- func (t *GetDatabase_Database) GetProvider() *enums.DatabaseProvider
- func (t *GetDatabase_Database) GetStatus() *enums.DatabaseStatus
- type GetGroup
- type GetGroup_Group
- type Group
- type GroupConnection
- type GroupCreatePayload
- type GroupDeletePayload
- type GroupEdge
- type GroupUpdatePayload
- type GroupWhereInput
- type Mutation
- type OrderDirection
- type PageInfo
- type Query
- type UpdateDatabaseInput
- type UpdateGroupInput
Constants ¶
const CreateDatabaseDocument = `` /* 180-byte string literal not displayed */
const CreateGroupDocument = `` /* 171-byte string literal not displayed */
const DeleteDatabaseDocument = `mutation DeleteDatabase ($name: String!) {
deleteDatabase(name: $name) {
deletedID
}
}
`
const DeleteGroupDocument = `mutation DeleteGroup ($name: String!) {
deleteGroup(name: $name) {
deletedID
}
}
`
const GetAllDatabasesDocument = `` /* 146-byte string literal not displayed */
const GetAllGroupsDocument = `` /* 142-byte string literal not displayed */
const GetDatabaseDocument = `` /* 128-byte string literal not displayed */
const GetGroupDocument = `` /* 126-byte string literal not displayed */
Variables ¶
var AllOrderDirection = []OrderDirection{ OrderDirectionAsc, OrderDirectionDesc, }
var DocumentOperationNames = map[string]string{ GetDatabaseDocument: "GetDatabase", GetAllDatabasesDocument: "GetAllDatabases", CreateDatabaseDocument: "CreateDatabase", DeleteDatabaseDocument: "DeleteDatabase", GetGroupDocument: "GetGroup", GetAllGroupsDocument: "GetAllGroups", CreateGroupDocument: "CreateGroup", DeleteGroupDocument: "DeleteGroup", }
Functions ¶
func WithAuthorization ¶
func WithAuthorization(accessToken string, session string) clientv2.RequestInterceptor
WithAuthorization adds the authorization header and session to the client request
func WithEmptyInterceptor ¶
func WithEmptyInterceptor() clientv2.RequestInterceptor
WithEmptyInterceptor adds an empty interceptor
func WithLoggingInterceptor ¶
func WithLoggingInterceptor() clientv2.RequestInterceptor
WithLoggingInterceptor adds a http debug logging interceptor
Types ¶
type Client ¶
func (*Client) CreateDatabase ¶
func (c *Client) CreateDatabase(ctx context.Context, input CreateDatabaseInput, interceptors ...clientv2.RequestInterceptor) (*CreateDatabase, error)
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(ctx context.Context, input CreateGroupInput, interceptors ...clientv2.RequestInterceptor) (*CreateGroup, error)
func (*Client) DeleteDatabase ¶
func (c *Client) DeleteDatabase(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*DeleteDatabase, error)
func (*Client) DeleteGroup ¶
func (c *Client) DeleteGroup(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*DeleteGroup, error)
func (*Client) GetAllDatabases ¶
func (c *Client) GetAllDatabases(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllDatabases, error)
func (*Client) GetAllGroups ¶
func (c *Client) GetAllGroups(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroups, error)
func (*Client) GetDatabase ¶
func (c *Client) GetDatabase(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*GetDatabase, error)
type Config ¶
type Config struct { // Enabled is a flag to enable the dbx client Enabled bool `json:"enabled" koanf:"enabled" jsonschema:"description=Enable the dbx client" default:"true"` // BaseURL is the base url for the dbx service BaseURL string `json:"baseUrl" koanf:"baseUrl" jsonschema:"description=Base URL for the dbx service" default:"http://localhost:1337"` // Endpoint is the endpoint for the graphql api Endpoint string `json:"endpoint" koanf:"endpoint" jsonschema:"description=Endpoint for the graphql api" default:"query"` // Debug is a flag to enable debug mode Debug bool `json:"debug" koanf:"debug" jsonschema:"description=Enable debug mode" default:"false"` }
func (Config) NewClientWithInterceptors ¶
func (c Config) NewClientWithInterceptors(i []clientv2.RequestInterceptor) Dbxclient
NewClientWithInterceptors creates a new default dbx client with the provided interceptors
func (Config) NewDefaultClient ¶
NewDefaultClient creates a new default dbx client based on the config
type CreateDatabase ¶
type CreateDatabase struct {
CreateDatabase CreateDatabase_CreateDatabase "json:\"createDatabase\" graphql:\"createDatabase\""
}
func (*CreateDatabase) GetCreateDatabase ¶
func (t *CreateDatabase) GetCreateDatabase() *CreateDatabase_CreateDatabase
type CreateDatabaseInput ¶
type CreateDatabaseInput struct { // the ID of the organization OrganizationID string `json:"organizationID"` // the name to the database Name string `json:"name"` // the geo location of the database Geo *string `json:"geo,omitempty"` // the DSN to the database Dsn string `json:"dsn"` // the auth token used to connect to the database Token *string `json:"token,omitempty"` // status of the database Status *enums.DatabaseStatus `json:"status,omitempty"` // provider of the database Provider *enums.DatabaseProvider `json:"provider,omitempty"` GroupID string `json:"groupID"` }
CreateDatabaseInput is used for create Database object. Input was generated by ent.
type CreateDatabase_CreateDatabase ¶
type CreateDatabase_CreateDatabase struct {
Database CreateDatabase_CreateDatabase_Database "json:\"database\" graphql:\"database\""
}
func (*CreateDatabase_CreateDatabase) GetDatabase ¶
func (t *CreateDatabase_CreateDatabase) GetDatabase() *CreateDatabase_CreateDatabase_Database
type CreateDatabase_CreateDatabase_Database ¶
type CreateDatabase_CreateDatabase_Database struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" Provider enums.DatabaseProvider "json:\"provider\" graphql:\"provider\"" Status enums.DatabaseStatus "json:\"status\" graphql:\"status\"" Dsn string "json:\"dsn\" graphql:\"dsn\"" Geo *string "json:\"geo,omitempty\" graphql:\"geo\"" }
func (*CreateDatabase_CreateDatabase_Database) GetDsn ¶
func (t *CreateDatabase_CreateDatabase_Database) GetDsn() string
func (*CreateDatabase_CreateDatabase_Database) GetGeo ¶
func (t *CreateDatabase_CreateDatabase_Database) GetGeo() *string
func (*CreateDatabase_CreateDatabase_Database) GetID ¶
func (t *CreateDatabase_CreateDatabase_Database) GetID() string
func (*CreateDatabase_CreateDatabase_Database) GetName ¶
func (t *CreateDatabase_CreateDatabase_Database) GetName() string
func (*CreateDatabase_CreateDatabase_Database) GetOrganizationID ¶
func (t *CreateDatabase_CreateDatabase_Database) GetOrganizationID() string
func (*CreateDatabase_CreateDatabase_Database) GetProvider ¶
func (t *CreateDatabase_CreateDatabase_Database) GetProvider() *enums.DatabaseProvider
func (*CreateDatabase_CreateDatabase_Database) GetStatus ¶
func (t *CreateDatabase_CreateDatabase_Database) GetStatus() *enums.DatabaseStatus
type CreateGroup ¶
type CreateGroup struct {
CreateGroup CreateGroup_CreateGroup "json:\"createGroup\" graphql:\"createGroup\""
}
func (*CreateGroup) GetCreateGroup ¶
func (t *CreateGroup) GetCreateGroup() *CreateGroup_CreateGroup
type CreateGroupInput ¶
type CreateGroupInput struct { // the name of the group in turso Name string `json:"name"` // the description of the group Description *string `json:"description,omitempty"` // the primary of the group PrimaryLocation string `json:"primaryLocation"` // the replica locations of the group Locations []string `json:"locations,omitempty"` // the auth token used to connect to the group Token *string `json:"token,omitempty"` // region the group Region *enums.Region `json:"region,omitempty"` DatabaseIDs []string `json:"databaseIDs,omitempty"` }
CreateGroupInput is used for create Group object. Input was generated by ent.
type CreateGroup_CreateGroup ¶
type CreateGroup_CreateGroup struct {
Group CreateGroup_CreateGroup_Group "json:\"group\" graphql:\"group\""
}
func (*CreateGroup_CreateGroup) GetGroup ¶
func (t *CreateGroup_CreateGroup) GetGroup() *CreateGroup_CreateGroup_Group
type CreateGroup_CreateGroup_Group ¶
type CreateGroup_CreateGroup_Group struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Description *string "json:\"description,omitempty\" graphql:\"description\"" PrimaryLocation string "json:\"primaryLocation\" graphql:\"primaryLocation\"" Locations []string "json:\"locations,omitempty\" graphql:\"locations\"" Region enums.Region "json:\"region\" graphql:\"region\"" }
func (*CreateGroup_CreateGroup_Group) GetDescription ¶
func (t *CreateGroup_CreateGroup_Group) GetDescription() *string
func (*CreateGroup_CreateGroup_Group) GetID ¶
func (t *CreateGroup_CreateGroup_Group) GetID() string
func (*CreateGroup_CreateGroup_Group) GetLocations ¶
func (t *CreateGroup_CreateGroup_Group) GetLocations() []string
func (*CreateGroup_CreateGroup_Group) GetName ¶
func (t *CreateGroup_CreateGroup_Group) GetName() string
func (*CreateGroup_CreateGroup_Group) GetPrimaryLocation ¶
func (t *CreateGroup_CreateGroup_Group) GetPrimaryLocation() string
func (*CreateGroup_CreateGroup_Group) GetRegion ¶
func (t *CreateGroup_CreateGroup_Group) GetRegion() *enums.Region
type Database ¶
type Database struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy *string `json:"deletedBy,omitempty"` // the ID of the organization OrganizationID string `json:"organizationID"` // the name to the database Name string `json:"name"` // the geo location of the database Geo *string `json:"geo,omitempty"` // the DSN to the database Dsn string `json:"dsn"` // the ID of the group GroupID string `json:"groupID"` // status of the database Status enums.DatabaseStatus `json:"status"` // provider of the database Provider enums.DatabaseProvider `json:"provider"` Group *Group `json:"group"` }
type DatabaseConnection ¶
type DatabaseConnection struct { // A list of edges. Edges []*DatabaseEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. TotalCount int64 `json:"totalCount"` }
A connection to a list of items.
type DatabaseCreatePayload ¶
type DatabaseCreatePayload struct { // Created database Database *Database `json:"database"` }
Return response for createDatabase mutation
type DatabaseDeletePayload ¶
type DatabaseDeletePayload struct { // Deleted database ID DeletedID string `json:"deletedID"` }
Return response for deleteDatabase mutation
type DatabaseEdge ¶
type DatabaseEdge struct { // The item at the end of the edge. Node *Database `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` }
An edge in a connection.
type DatabaseUpdatePayload ¶
type DatabaseUpdatePayload struct { // Updated database Database *Database `json:"database"` }
Return response for updateDatabase mutation
type DatabaseWhereInput ¶
type DatabaseWhereInput struct { Not *DatabaseWhereInput `json:"not,omitempty"` And []*DatabaseWhereInput `json:"and,omitempty"` Or []*DatabaseWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGt *string `json:"idGT,omitempty"` IDGte *string `json:"idGTE,omitempty"` IDLt *string `json:"idLT,omitempty"` IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` // created_at field predicates CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []*time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGt *time.Time `json:"createdAtGT,omitempty"` CreatedAtGte *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLt *time.Time `json:"createdAtLT,omitempty"` CreatedAtLte *time.Time `json:"createdAtLTE,omitempty"` CreatedAtIsNil *bool `json:"createdAtIsNil,omitempty"` CreatedAtNotNil *bool `json:"createdAtNotNil,omitempty"` // updated_at field predicates UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGt *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGte *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLt *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLte *time.Time `json:"updatedAtLTE,omitempty"` UpdatedAtIsNil *bool `json:"updatedAtIsNil,omitempty"` UpdatedAtNotNil *bool `json:"updatedAtNotNil,omitempty"` // created_by field predicates CreatedBy *string `json:"createdBy,omitempty"` CreatedByNeq *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGt *string `json:"createdByGT,omitempty"` CreatedByGte *string `json:"createdByGTE,omitempty"` CreatedByLt *string `json:"createdByLT,omitempty"` CreatedByLte *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil *bool `json:"createdByIsNil,omitempty"` CreatedByNotNil *bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // updated_by field predicates UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNeq *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGt *string `json:"updatedByGT,omitempty"` UpdatedByGte *string `json:"updatedByGTE,omitempty"` UpdatedByLt *string `json:"updatedByLT,omitempty"` UpdatedByLte *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil *bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` // deleted_at field predicates DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` // deleted_by field predicates DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNeq *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGt *string `json:"deletedByGT,omitempty"` DeletedByGte *string `json:"deletedByGTE,omitempty"` DeletedByLt *string `json:"deletedByLT,omitempty"` DeletedByLte *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` // organization_id field predicates OrganizationID *string `json:"organizationID,omitempty"` OrganizationIDNeq *string `json:"organizationIDNEQ,omitempty"` OrganizationIDIn []string `json:"organizationIDIn,omitempty"` OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` OrganizationIDGt *string `json:"organizationIDGT,omitempty"` OrganizationIDGte *string `json:"organizationIDGTE,omitempty"` OrganizationIDLt *string `json:"organizationIDLT,omitempty"` OrganizationIDLte *string `json:"organizationIDLTE,omitempty"` OrganizationIDContains *string `json:"organizationIDContains,omitempty"` OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` // name field predicates Name *string `json:"name,omitempty"` NameNeq *string `json:"nameNEQ,omitempty"` NameIn []string `json:"nameIn,omitempty"` NameNotIn []string `json:"nameNotIn,omitempty"` NameGt *string `json:"nameGT,omitempty"` NameGte *string `json:"nameGTE,omitempty"` NameLt *string `json:"nameLT,omitempty"` NameLte *string `json:"nameLTE,omitempty"` NameContains *string `json:"nameContains,omitempty"` NameHasPrefix *string `json:"nameHasPrefix,omitempty"` NameHasSuffix *string `json:"nameHasSuffix,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` // geo field predicates Geo *string `json:"geo,omitempty"` GeoNeq *string `json:"geoNEQ,omitempty"` GeoIn []string `json:"geoIn,omitempty"` GeoNotIn []string `json:"geoNotIn,omitempty"` GeoGt *string `json:"geoGT,omitempty"` GeoGte *string `json:"geoGTE,omitempty"` GeoLt *string `json:"geoLT,omitempty"` GeoLte *string `json:"geoLTE,omitempty"` GeoContains *string `json:"geoContains,omitempty"` GeoHasPrefix *string `json:"geoHasPrefix,omitempty"` GeoHasSuffix *string `json:"geoHasSuffix,omitempty"` GeoIsNil *bool `json:"geoIsNil,omitempty"` GeoNotNil *bool `json:"geoNotNil,omitempty"` GeoEqualFold *string `json:"geoEqualFold,omitempty"` GeoContainsFold *string `json:"geoContainsFold,omitempty"` // dsn field predicates Dsn *string `json:"dsn,omitempty"` DsnNeq *string `json:"dsnNEQ,omitempty"` DsnIn []string `json:"dsnIn,omitempty"` DsnNotIn []string `json:"dsnNotIn,omitempty"` DsnGt *string `json:"dsnGT,omitempty"` DsnGte *string `json:"dsnGTE,omitempty"` DsnLt *string `json:"dsnLT,omitempty"` DsnLte *string `json:"dsnLTE,omitempty"` DsnContains *string `json:"dsnContains,omitempty"` DsnHasPrefix *string `json:"dsnHasPrefix,omitempty"` DsnHasSuffix *string `json:"dsnHasSuffix,omitempty"` DsnEqualFold *string `json:"dsnEqualFold,omitempty"` DsnContainsFold *string `json:"dsnContainsFold,omitempty"` // group_id field predicates GroupID *string `json:"groupID,omitempty"` GroupIDNeq *string `json:"groupIDNEQ,omitempty"` GroupIDIn []string `json:"groupIDIn,omitempty"` GroupIDNotIn []string `json:"groupIDNotIn,omitempty"` GroupIDGt *string `json:"groupIDGT,omitempty"` GroupIDGte *string `json:"groupIDGTE,omitempty"` GroupIDLt *string `json:"groupIDLT,omitempty"` GroupIDLte *string `json:"groupIDLTE,omitempty"` GroupIDContains *string `json:"groupIDContains,omitempty"` GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` GroupIDContainsFold *string `json:"groupIDContainsFold,omitempty"` // status field predicates Status *enums.DatabaseStatus `json:"status,omitempty"` StatusNeq *enums.DatabaseStatus `json:"statusNEQ,omitempty"` StatusIn []enums.DatabaseStatus `json:"statusIn,omitempty"` StatusNotIn []enums.DatabaseStatus `json:"statusNotIn,omitempty"` // provider field predicates Provider *enums.DatabaseProvider `json:"provider,omitempty"` ProviderNeq *enums.DatabaseProvider `json:"providerNEQ,omitempty"` ProviderIn []enums.DatabaseProvider `json:"providerIn,omitempty"` ProviderNotIn []enums.DatabaseProvider `json:"providerNotIn,omitempty"` // group edge predicates HasGroup *bool `json:"hasGroup,omitempty"` HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` }
DatabaseWhereInput is used for filtering Database objects. Input was generated by ent.
type Dbxclient ¶
type Dbxclient interface { GetDatabase(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*GetDatabase, error) GetAllDatabases(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllDatabases, error) CreateDatabase(ctx context.Context, input CreateDatabaseInput, interceptors ...clientv2.RequestInterceptor) (*CreateDatabase, error) DeleteDatabase(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*DeleteDatabase, error) GetGroup(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*GetGroup, error) GetAllGroups(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroups, error) CreateGroup(ctx context.Context, input CreateGroupInput, interceptors ...clientv2.RequestInterceptor) (*CreateGroup, error) DeleteGroup(ctx context.Context, name string, interceptors ...clientv2.RequestInterceptor) (*DeleteGroup, error) }
type DeleteDatabase ¶
type DeleteDatabase struct {
DeleteDatabase DeleteDatabase_DeleteDatabase "json:\"deleteDatabase\" graphql:\"deleteDatabase\""
}
func (*DeleteDatabase) GetDeleteDatabase ¶
func (t *DeleteDatabase) GetDeleteDatabase() *DeleteDatabase_DeleteDatabase
type DeleteDatabase_DeleteDatabase ¶
type DeleteDatabase_DeleteDatabase struct {
DeletedID string "json:\"deletedID\" graphql:\"deletedID\""
}
func (*DeleteDatabase_DeleteDatabase) GetDeletedID ¶
func (t *DeleteDatabase_DeleteDatabase) GetDeletedID() string
type DeleteGroup ¶
type DeleteGroup struct {
DeleteGroup DeleteGroup_DeleteGroup "json:\"deleteGroup\" graphql:\"deleteGroup\""
}
func (*DeleteGroup) GetDeleteGroup ¶
func (t *DeleteGroup) GetDeleteGroup() *DeleteGroup_DeleteGroup
type DeleteGroup_DeleteGroup ¶
type DeleteGroup_DeleteGroup struct {
DeletedID string "json:\"deletedID\" graphql:\"deletedID\""
}
func (*DeleteGroup_DeleteGroup) GetDeletedID ¶
func (t *DeleteGroup_DeleteGroup) GetDeletedID() string
type GetAllDatabases ¶
type GetAllDatabases struct {
Databases GetAllDatabases_Databases "json:\"databases\" graphql:\"databases\""
}
func (*GetAllDatabases) GetDatabases ¶
func (t *GetAllDatabases) GetDatabases() *GetAllDatabases_Databases
type GetAllDatabases_Databases ¶
type GetAllDatabases_Databases struct {
Edges []*GetAllDatabases_Databases_Edges "json:\"edges,omitempty\" graphql:\"edges\""
}
func (*GetAllDatabases_Databases) GetEdges ¶
func (t *GetAllDatabases_Databases) GetEdges() []*GetAllDatabases_Databases_Edges
type GetAllDatabases_Databases_Edges ¶
type GetAllDatabases_Databases_Edges struct {
Node *GetAllDatabases_Databases_Edges_Node "json:\"node,omitempty\" graphql:\"node\""
}
func (*GetAllDatabases_Databases_Edges) GetNode ¶
func (t *GetAllDatabases_Databases_Edges) GetNode() *GetAllDatabases_Databases_Edges_Node
type GetAllDatabases_Databases_Edges_Node ¶
type GetAllDatabases_Databases_Edges_Node struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" Provider enums.DatabaseProvider "json:\"provider\" graphql:\"provider\"" Status enums.DatabaseStatus "json:\"status\" graphql:\"status\"" Dsn string "json:\"dsn\" graphql:\"dsn\"" Geo *string "json:\"geo,omitempty\" graphql:\"geo\"" }
func (*GetAllDatabases_Databases_Edges_Node) GetDsn ¶
func (t *GetAllDatabases_Databases_Edges_Node) GetDsn() string
func (*GetAllDatabases_Databases_Edges_Node) GetGeo ¶
func (t *GetAllDatabases_Databases_Edges_Node) GetGeo() *string
func (*GetAllDatabases_Databases_Edges_Node) GetID ¶
func (t *GetAllDatabases_Databases_Edges_Node) GetID() string
func (*GetAllDatabases_Databases_Edges_Node) GetName ¶
func (t *GetAllDatabases_Databases_Edges_Node) GetName() string
func (*GetAllDatabases_Databases_Edges_Node) GetOrganizationID ¶
func (t *GetAllDatabases_Databases_Edges_Node) GetOrganizationID() string
func (*GetAllDatabases_Databases_Edges_Node) GetProvider ¶
func (t *GetAllDatabases_Databases_Edges_Node) GetProvider() *enums.DatabaseProvider
func (*GetAllDatabases_Databases_Edges_Node) GetStatus ¶
func (t *GetAllDatabases_Databases_Edges_Node) GetStatus() *enums.DatabaseStatus
type GetAllGroups ¶
type GetAllGroups struct {
Groups GetAllGroups_Groups "json:\"groups\" graphql:\"groups\""
}
func (*GetAllGroups) GetGroups ¶
func (t *GetAllGroups) GetGroups() *GetAllGroups_Groups
type GetAllGroups_Groups ¶
type GetAllGroups_Groups struct {
Edges []*GetAllGroups_Groups_Edges "json:\"edges,omitempty\" graphql:\"edges\""
}
func (*GetAllGroups_Groups) GetEdges ¶
func (t *GetAllGroups_Groups) GetEdges() []*GetAllGroups_Groups_Edges
type GetAllGroups_Groups_Edges ¶
type GetAllGroups_Groups_Edges struct {
Node *GetAllGroups_Groups_Edges_Node "json:\"node,omitempty\" graphql:\"node\""
}
func (*GetAllGroups_Groups_Edges) GetNode ¶
func (t *GetAllGroups_Groups_Edges) GetNode() *GetAllGroups_Groups_Edges_Node
type GetAllGroups_Groups_Edges_Node ¶
type GetAllGroups_Groups_Edges_Node struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Description *string "json:\"description,omitempty\" graphql:\"description\"" PrimaryLocation string "json:\"primaryLocation\" graphql:\"primaryLocation\"" Locations []string "json:\"locations,omitempty\" graphql:\"locations\"" Region enums.Region "json:\"region\" graphql:\"region\"" }
func (*GetAllGroups_Groups_Edges_Node) GetDescription ¶
func (t *GetAllGroups_Groups_Edges_Node) GetDescription() *string
func (*GetAllGroups_Groups_Edges_Node) GetID ¶
func (t *GetAllGroups_Groups_Edges_Node) GetID() string
func (*GetAllGroups_Groups_Edges_Node) GetLocations ¶
func (t *GetAllGroups_Groups_Edges_Node) GetLocations() []string
func (*GetAllGroups_Groups_Edges_Node) GetName ¶
func (t *GetAllGroups_Groups_Edges_Node) GetName() string
func (*GetAllGroups_Groups_Edges_Node) GetPrimaryLocation ¶
func (t *GetAllGroups_Groups_Edges_Node) GetPrimaryLocation() string
func (*GetAllGroups_Groups_Edges_Node) GetRegion ¶
func (t *GetAllGroups_Groups_Edges_Node) GetRegion() *enums.Region
type GetDatabase ¶
type GetDatabase struct {
Database GetDatabase_Database "json:\"database\" graphql:\"database\""
}
func (*GetDatabase) GetDatabase ¶
func (t *GetDatabase) GetDatabase() *GetDatabase_Database
type GetDatabase_Database ¶
type GetDatabase_Database struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" Provider enums.DatabaseProvider "json:\"provider\" graphql:\"provider\"" Status enums.DatabaseStatus "json:\"status\" graphql:\"status\"" Dsn string "json:\"dsn\" graphql:\"dsn\"" Geo *string "json:\"geo,omitempty\" graphql:\"geo\"" }
func (*GetDatabase_Database) GetDsn ¶
func (t *GetDatabase_Database) GetDsn() string
func (*GetDatabase_Database) GetGeo ¶
func (t *GetDatabase_Database) GetGeo() *string
func (*GetDatabase_Database) GetID ¶
func (t *GetDatabase_Database) GetID() string
func (*GetDatabase_Database) GetName ¶
func (t *GetDatabase_Database) GetName() string
func (*GetDatabase_Database) GetOrganizationID ¶
func (t *GetDatabase_Database) GetOrganizationID() string
func (*GetDatabase_Database) GetProvider ¶
func (t *GetDatabase_Database) GetProvider() *enums.DatabaseProvider
func (*GetDatabase_Database) GetStatus ¶
func (t *GetDatabase_Database) GetStatus() *enums.DatabaseStatus
type GetGroup ¶
type GetGroup struct {
Group GetGroup_Group "json:\"group\" graphql:\"group\""
}
func (*GetGroup) GetGroup ¶
func (t *GetGroup) GetGroup() *GetGroup_Group
type GetGroup_Group ¶
type GetGroup_Group struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Description *string "json:\"description,omitempty\" graphql:\"description\"" PrimaryLocation string "json:\"primaryLocation\" graphql:\"primaryLocation\"" Locations []string "json:\"locations,omitempty\" graphql:\"locations\"" Region enums.Region "json:\"region\" graphql:\"region\"" }
func (*GetGroup_Group) GetDescription ¶
func (t *GetGroup_Group) GetDescription() *string
func (*GetGroup_Group) GetID ¶
func (t *GetGroup_Group) GetID() string
func (*GetGroup_Group) GetLocations ¶
func (t *GetGroup_Group) GetLocations() []string
func (*GetGroup_Group) GetName ¶
func (t *GetGroup_Group) GetName() string
func (*GetGroup_Group) GetPrimaryLocation ¶
func (t *GetGroup_Group) GetPrimaryLocation() string
func (*GetGroup_Group) GetRegion ¶
func (t *GetGroup_Group) GetRegion() *enums.Region
type Group ¶
type Group struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy *string `json:"deletedBy,omitempty"` // the name of the group in turso Name string `json:"name"` // the description of the group Description *string `json:"description,omitempty"` // the primary of the group PrimaryLocation string `json:"primaryLocation"` // the replica locations of the group Locations []string `json:"locations,omitempty"` // region the group Region enums.Region `json:"region"` Databases []*Database `json:"databases,omitempty"` }
type GroupConnection ¶
type GroupConnection struct { // A list of edges. Edges []*GroupEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. TotalCount int64 `json:"totalCount"` }
A connection to a list of items.
type GroupCreatePayload ¶
type GroupCreatePayload struct { // Created group Group *Group `json:"group"` }
Return response for createGroup mutation
type GroupDeletePayload ¶
type GroupDeletePayload struct { // Deleted group ID DeletedID string `json:"deletedID"` }
Return response for deleteGroup mutation
type GroupEdge ¶
type GroupEdge struct { // The item at the end of the edge. Node *Group `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` }
An edge in a connection.
type GroupUpdatePayload ¶
type GroupUpdatePayload struct { // Updated group Group *Group `json:"group"` }
Return response for updateGroup mutation
type GroupWhereInput ¶
type GroupWhereInput struct { Not *GroupWhereInput `json:"not,omitempty"` And []*GroupWhereInput `json:"and,omitempty"` Or []*GroupWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGt *string `json:"idGT,omitempty"` IDGte *string `json:"idGTE,omitempty"` IDLt *string `json:"idLT,omitempty"` IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` // created_at field predicates CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []*time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGt *time.Time `json:"createdAtGT,omitempty"` CreatedAtGte *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLt *time.Time `json:"createdAtLT,omitempty"` CreatedAtLte *time.Time `json:"createdAtLTE,omitempty"` CreatedAtIsNil *bool `json:"createdAtIsNil,omitempty"` CreatedAtNotNil *bool `json:"createdAtNotNil,omitempty"` // updated_at field predicates UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGt *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGte *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLt *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLte *time.Time `json:"updatedAtLTE,omitempty"` UpdatedAtIsNil *bool `json:"updatedAtIsNil,omitempty"` UpdatedAtNotNil *bool `json:"updatedAtNotNil,omitempty"` // created_by field predicates CreatedBy *string `json:"createdBy,omitempty"` CreatedByNeq *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGt *string `json:"createdByGT,omitempty"` CreatedByGte *string `json:"createdByGTE,omitempty"` CreatedByLt *string `json:"createdByLT,omitempty"` CreatedByLte *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil *bool `json:"createdByIsNil,omitempty"` CreatedByNotNil *bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // updated_by field predicates UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNeq *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGt *string `json:"updatedByGT,omitempty"` UpdatedByGte *string `json:"updatedByGTE,omitempty"` UpdatedByLt *string `json:"updatedByLT,omitempty"` UpdatedByLte *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil *bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` // deleted_at field predicates DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` // deleted_by field predicates DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNeq *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGt *string `json:"deletedByGT,omitempty"` DeletedByGte *string `json:"deletedByGTE,omitempty"` DeletedByLt *string `json:"deletedByLT,omitempty"` DeletedByLte *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` // name field predicates Name *string `json:"name,omitempty"` NameNeq *string `json:"nameNEQ,omitempty"` NameIn []string `json:"nameIn,omitempty"` NameNotIn []string `json:"nameNotIn,omitempty"` NameGt *string `json:"nameGT,omitempty"` NameGte *string `json:"nameGTE,omitempty"` NameLt *string `json:"nameLT,omitempty"` NameLte *string `json:"nameLTE,omitempty"` NameContains *string `json:"nameContains,omitempty"` NameHasPrefix *string `json:"nameHasPrefix,omitempty"` NameHasSuffix *string `json:"nameHasSuffix,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` // description field predicates Description *string `json:"description,omitempty"` DescriptionNeq *string `json:"descriptionNEQ,omitempty"` DescriptionIn []string `json:"descriptionIn,omitempty"` DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` DescriptionGt *string `json:"descriptionGT,omitempty"` DescriptionGte *string `json:"descriptionGTE,omitempty"` DescriptionLt *string `json:"descriptionLT,omitempty"` DescriptionLte *string `json:"descriptionLTE,omitempty"` DescriptionContains *string `json:"descriptionContains,omitempty"` DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` DescriptionIsNil *bool `json:"descriptionIsNil,omitempty"` DescriptionNotNil *bool `json:"descriptionNotNil,omitempty"` DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` // primary_location field predicates PrimaryLocation *string `json:"primaryLocation,omitempty"` PrimaryLocationNeq *string `json:"primaryLocationNEQ,omitempty"` PrimaryLocationIn []string `json:"primaryLocationIn,omitempty"` PrimaryLocationNotIn []string `json:"primaryLocationNotIn,omitempty"` PrimaryLocationGt *string `json:"primaryLocationGT,omitempty"` PrimaryLocationGte *string `json:"primaryLocationGTE,omitempty"` PrimaryLocationLt *string `json:"primaryLocationLT,omitempty"` PrimaryLocationLte *string `json:"primaryLocationLTE,omitempty"` PrimaryLocationContains *string `json:"primaryLocationContains,omitempty"` PrimaryLocationHasPrefix *string `json:"primaryLocationHasPrefix,omitempty"` PrimaryLocationHasSuffix *string `json:"primaryLocationHasSuffix,omitempty"` PrimaryLocationEqualFold *string `json:"primaryLocationEqualFold,omitempty"` PrimaryLocationContainsFold *string `json:"primaryLocationContainsFold,omitempty"` // region field predicates Region *enums.Region `json:"region,omitempty"` RegionNeq *enums.Region `json:"regionNEQ,omitempty"` RegionIn []enums.Region `json:"regionIn,omitempty"` RegionNotIn []enums.Region `json:"regionNotIn,omitempty"` // databases edge predicates HasDatabases *bool `json:"hasDatabases,omitempty"` HasDatabasesWith []*DatabaseWhereInput `json:"hasDatabasesWith,omitempty"` }
GroupWhereInput is used for filtering Group objects. Input was generated by ent.
type OrderDirection ¶
type OrderDirection string
Possible directions in which to order a list of items when provided an `orderBy` argument.
const ( // Specifies an ascending order for a given `orderBy` argument. OrderDirectionAsc OrderDirection = "ASC" // Specifies a descending order for a given `orderBy` argument. OrderDirectionDesc OrderDirection = "DESC" )
func (OrderDirection) IsValid ¶
func (e OrderDirection) IsValid() bool
func (OrderDirection) MarshalGQL ¶
func (e OrderDirection) MarshalGQL(w io.Writer)
func (OrderDirection) String ¶
func (e OrderDirection) String() string
func (*OrderDirection) UnmarshalGQL ¶
func (e *OrderDirection) UnmarshalGQL(v interface{}) error
type PageInfo ¶
type PageInfo struct { // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` // When paginating backwards, are there more items? HasPreviousPage bool `json:"hasPreviousPage"` // When paginating backwards, the cursor to continue. StartCursor *string `json:"startCursor,omitempty"` // When paginating forwards, the cursor to continue. EndCursor *string `json:"endCursor,omitempty"` }
Information about pagination in a connection. https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
type UpdateDatabaseInput ¶
type UpdateDatabaseInput struct { // the ID of the organization OrganizationID *string `json:"organizationID,omitempty"` // the name to the database Name *string `json:"name,omitempty"` // the geo location of the database Geo *string `json:"geo,omitempty"` ClearGeo *bool `json:"clearGeo,omitempty"` // the DSN to the database Dsn *string `json:"dsn,omitempty"` // the auth token used to connect to the database Token *string `json:"token,omitempty"` ClearToken *bool `json:"clearToken,omitempty"` // status of the database Status *enums.DatabaseStatus `json:"status,omitempty"` // provider of the database Provider *enums.DatabaseProvider `json:"provider,omitempty"` GroupID *string `json:"groupID,omitempty"` }
UpdateDatabaseInput is used for update Database object. Input was generated by ent.
type UpdateGroupInput ¶
type UpdateGroupInput struct { // the name of the group in turso Name *string `json:"name,omitempty"` // the description of the group Description *string `json:"description,omitempty"` ClearDescription *bool `json:"clearDescription,omitempty"` // the primary of the group PrimaryLocation *string `json:"primaryLocation,omitempty"` // the replica locations of the group Locations []string `json:"locations,omitempty"` AppendLocations []string `json:"appendLocations,omitempty"` ClearLocations *bool `json:"clearLocations,omitempty"` // the auth token used to connect to the group Token *string `json:"token,omitempty"` ClearToken *bool `json:"clearToken,omitempty"` // region the group Region *enums.Region `json:"region,omitempty"` AddDatabaseIDs []string `json:"addDatabaseIDs,omitempty"` RemoveDatabaseIDs []string `json:"removeDatabaseIDs,omitempty"` ClearDatabases *bool `json:"clearDatabases,omitempty"` }
UpdateGroupInput is used for update Group object. Input was generated by ent.