firestore

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilterSuffix = map[string]string{
	"eq":     "==",
	"ne":     "!=",
	"lt":     "<",
	"lte":    "<=",
	"gt":     ">",
	"gte":    ">=",
	"in":     "in",
	"not_in": "not-in",
}

Functions

func ConditionBuilder

func ConditionBuilder(variable string, args map[string]interface{}, modelType *protobuff.ModelType) (map[string][]firestore.Query, error)

func FilterBuilder

func FilterBuilder(variable string, where map[string]interface{}, modelType *protobuff.ModelType) ([]firestore.Query, error)

func LimitBuilder

func LimitBuilder(param *graphql.ResolveParams) firestore.Query

func LocalBuilder

func LocalBuilder(variable string, args map[string]interface{}, modelType *protobuff.ModelType) firestore.Query

func RootResolverQueryBuilder

func RootResolverQueryBuilder(param shared.CommonSystemParams, previewMode bool) ([]firestore.Query, error)

Types

type FireStoreDriver

type FireStoreDriver struct {
	Db *firestore.Client
}

func GetFirestoreDriver

func GetFirestoreDriver(engine *protobuff.DriverCredentials) (*FireStoreDriver, error)

func (*FireStoreDriver) AddATeamMemberToProject

func (f *FireStoreDriver) AddATeamMemberToProject(ctx context.Context, projectId string, memberData map[string]interface{}) error

func (*FireStoreDriver) AddAuthAddOns

func (f *FireStoreDriver) AddAuthAddOns(ctx context.Context, project *protobuff.Project, auth map[string]interface{}) error

func (*FireStoreDriver) AddCollection

func (f *FireStoreDriver) AddCollection(ctx context.Context, projectName string) (*string, error)

func (*FireStoreDriver) AddDocumentToProject

func (f *FireStoreDriver) AddDocumentToProject(ctx context.Context, projectId string, modelName string, doc *shared.DefaultDocumentStructure) (interface{}, error)

func (*FireStoreDriver) AddFieldToModel

func (f *FireStoreDriver) AddFieldToModel(ctx context.Context, param shared.CommonSystemParams, isUpdate bool, repeatedGroupIdentifier *string) (*protobuff.ModelType, error)

func (*FireStoreDriver) AddModel

func (f *FireStoreDriver) AddModel(ctx context.Context, project *protobuff.Project, name string, singleRecord bool) (*protobuff.ProjectSchema, error)

func (*FireStoreDriver) AddRelationFields

func (f *FireStoreDriver) AddRelationFields(ctx context.Context, from *protobuff.ConnectionType, to *protobuff.ConnectionType) error

func (*FireStoreDriver) AddTeamMetaInfo

func (f *FireStoreDriver) AddTeamMetaInfo(ctx context.Context, docs []*protobuff.SystemUser) ([]*protobuff.SystemUser, error)

func (*FireStoreDriver) BlacklistAToken

func (f *FireStoreDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error

func (*FireStoreDriver) CheckCollectionExists

func (f *FireStoreDriver) CheckCollectionExists(ctx context.Context, projectId string) (bool, error)

func (*FireStoreDriver) CheckOneToOneRelationExists

func (f *FireStoreDriver) CheckOneToOneRelationExists(ctx context.Context, param *shared.ConnectDisconnectParam) (bool, error)

func (*FireStoreDriver) CheckTokenBlacklisted

func (f *FireStoreDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error

func (*FireStoreDriver) ConnectBuilder

func (f *FireStoreDriver) ConnectBuilder(ctx context.Context, param shared.CommonSystemParams) error

func (*FireStoreDriver) ConvertModel

func (f *FireStoreDriver) ConvertModel(ctx context.Context, project *protobuff.Project, modelName string) error

func (*FireStoreDriver) CountDocOfProject

func (f *FireStoreDriver) CountDocOfProject(ctx context.Context, param *shared.CommonSystemParams) (interface{}, error)

func (*FireStoreDriver) CountDocOfProjectBytes

func (f *FireStoreDriver) CountDocOfProjectBytes(ctx context.Context, param *shared.CommonSystemParams) ([]byte, error)

func (*FireStoreDriver) CountMedias

func (f *FireStoreDriver) CountMedias(ctx context.Context, projectId string, param *graphql.ResolveParams) (int, error)

func (*FireStoreDriver) CountMultiDocumentOfProject

func (f *FireStoreDriver) CountMultiDocumentOfProject(ctx context.Context, param shared.CommonSystemParams, previewMode bool) (int, error)

func (*FireStoreDriver) CreateMediaDocument

func (f *FireStoreDriver) CreateMediaDocument(ctx context.Context, projectId string, media *protobuff.FileDetails) (*protobuff.FileDetails, error)

func (*FireStoreDriver) CreateRelation

func (f *FireStoreDriver) CreateRelation(ctx context.Context, projectId string, relation *shared.EdgeRelation) error

func (*FireStoreDriver) DeleteDocumentFromProject

func (f *FireStoreDriver) DeleteDocumentFromProject(ctx context.Context, param shared.CommonSystemParams) error

func (*FireStoreDriver) DeleteDocumentRelation

func (f *FireStoreDriver) DeleteDocumentRelation(ctx context.Context, param shared.CommonSystemParams) error

func (*FireStoreDriver) DeleteDocumentsFromProject

func (f *FireStoreDriver) DeleteDocumentsFromProject(ctx context.Context, param shared.CommonSystemParams) error

func (*FireStoreDriver) DeleteMediaFile

func (f *FireStoreDriver) DeleteMediaFile(ctx context.Context, param shared.CommonSystemParams) error

func (*FireStoreDriver) DeleteProject

func (f *FireStoreDriver) DeleteProject(ctx context.Context, projectId string) error

func (*FireStoreDriver) DeleteRelation

func (f *FireStoreDriver) DeleteRelation(ctx context.Context, param *shared.ConnectDisconnectParam, id string) error

func (*FireStoreDriver) DisconnectBuilder

func (f *FireStoreDriver) DisconnectBuilder(ctx context.Context, param shared.CommonSystemParams) error

func (*FireStoreDriver) DropConnections

func (f *FireStoreDriver) DropConnections(ctx context.Context, projectId string, from *protobuff.ConnectionType, to *protobuff.ConnectionType) error

func (*FireStoreDriver) DropField

func (f *FireStoreDriver) DropField(ctx context.Context, param shared.CommonSystemParams) error

func (*FireStoreDriver) DuplicateModel

func (f *FireStoreDriver) DuplicateModel(ctx context.Context, project *protobuff.Project, modelName, newName string) (*protobuff.ProjectSchema, error)

func (*FireStoreDriver) GetAllRelationDocumentsOfSingleDocument

func (f *FireStoreDriver) GetAllRelationDocumentsOfSingleDocument(ctx context.Context, from string, arg *shared.CommonSystemParams) (interface{}, error)

func (*FireStoreDriver) GetLoggedInProjectUser

func (f *FireStoreDriver) GetLoggedInProjectUser(ctx context.Context, param *shared.CommonSystemParams) (*shared.DefaultDocumentStructure, error)

func (*FireStoreDriver) GetProject

func (f *FireStoreDriver) GetProject(ctx context.Context, id string) (*protobuff.Project, error)

func (*FireStoreDriver) GetProjectUser

func (f *FireStoreDriver) GetProjectUser(ctx context.Context, phone, email, projectId string) (*shared.DefaultDocumentStructure, error)

func (*FireStoreDriver) GetProjectUsers

func (f *FireStoreDriver) GetProjectUsers(ctx context.Context, projectId string, keys []string) (map[string]*shared.DefaultDocumentStructure, error)

func (*FireStoreDriver) GetRelationIds

func (f *FireStoreDriver) GetRelationIds(ctx context.Context, param *shared.ConnectDisconnectParam) ([]string, error)

func (*FireStoreDriver) GetSingleProjectDocument

func (f *FireStoreDriver) GetSingleProjectDocument(ctx context.Context, param shared.CommonSystemParams) (*shared.DefaultDocumentStructure, error)

func (*FireStoreDriver) GetSingleProjectDocumentBytes

func (f *FireStoreDriver) GetSingleProjectDocumentBytes(ctx context.Context, param shared.CommonSystemParams) ([]byte, error)

func (*FireStoreDriver) GetSingleProjectDocumentRevisions

func (f *FireStoreDriver) GetSingleProjectDocumentRevisions(ctx context.Context, param shared.CommonSystemParams) ([]*shared.DocumentRevisionHistory, error)

func (*FireStoreDriver) GetSingleRawDocumentFromProject

func (f *FireStoreDriver) GetSingleRawDocumentFromProject(ctx context.Context, param shared.CommonSystemParams) (interface{}, error)

func (*FireStoreDriver) GetSystemUser

func (f *FireStoreDriver) GetSystemUser(ctx context.Context, id string) (*protobuff.SystemUser, error)

func (*FireStoreDriver) ListFunctions

func (*FireStoreDriver) ListMedias

func (f *FireStoreDriver) ListMedias(ctx context.Context, projectId string, param *graphql.ResolveParams) ([]*protobuff.FileDetails, error)

func (*FireStoreDriver) ListProjects

func (f *FireStoreDriver) ListProjects(ctx context.Context, userId string) ([]*protobuff.Project, error)

func (*FireStoreDriver) MetaDataLoader

func (f *FireStoreDriver) MetaDataLoader(ctx context.Context, projectId string, keys *dataloader.Keys) ([]*dataloader.Result, error)

func (*FireStoreDriver) NewInsertableRelations

func (f *FireStoreDriver) NewInsertableRelations(ctx context.Context, param *shared.ConnectDisconnectParam) ([]string, error)

func (*FireStoreDriver) QueryMultiDocumentOfProject

func (f *FireStoreDriver) QueryMultiDocumentOfProject(ctx context.Context, param shared.CommonSystemParams) ([]*shared.DefaultDocumentStructure, error)

func (*FireStoreDriver) QueryMultiDocumentOfProjectBytes

func (f *FireStoreDriver) QueryMultiDocumentOfProjectBytes(ctx context.Context, param shared.CommonSystemParams) ([]byte, error)

func (*FireStoreDriver) RelationshipDataLoader

func (f *FireStoreDriver) RelationshipDataLoader(ctx context.Context, param *shared.CommonSystemParams, connection map[string]interface{}) (interface{}, error)

func (*FireStoreDriver) RelationshipDataLoaderBytes

func (f *FireStoreDriver) RelationshipDataLoaderBytes(ctx context.Context, param *shared.CommonSystemParams, connection map[string]interface{}) ([]byte, error)

func (*FireStoreDriver) RemoveATeamMemberFromProject

func (f *FireStoreDriver) RemoveATeamMemberFromProject(ctx context.Context, projectId string, memberId string) error

func (*FireStoreDriver) RemoveAuthAddOns

func (f *FireStoreDriver) RemoveAuthAddOns(ctx context.Context, project *protobuff.Project, option map[string]interface{}) error

func (*FireStoreDriver) RenameField

func (f *FireStoreDriver) RenameField(ctx context.Context, oldFiledName string, repeatedGroup *string, param shared.CommonSystemParams) error

func (*FireStoreDriver) RenameModel

func (f *FireStoreDriver) RenameModel(ctx context.Context, project *protobuff.Project, modelName, newName string) error

func (*FireStoreDriver) RunMigration

func (f *FireStoreDriver) RunMigration(ctx context.Context, projectId string) error

func (*FireStoreDriver) SearchUsers

func (*FireStoreDriver) TransferProject

func (f *FireStoreDriver) TransferProject(ctx context.Context, userId, from, to string) error

func (*FireStoreDriver) UpdateDocumentOfProject

func (f *FireStoreDriver) UpdateDocumentOfProject(ctx context.Context, param shared.CommonSystemParams, doc *shared.DefaultDocumentStructure, replace bool) error

func (*FireStoreDriver) UpdateUsages

func (f *FireStoreDriver) UpdateUsages(ctx context.Context, projectId string, bandwidth float64) error

func (*FireStoreDriver) UpdateUser

func (f *FireStoreDriver) UpdateUser(ctx context.Context, user *protobuff.SystemUser, replace bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL