oracle

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OracleDriver

type OracleDriver struct {
	DB               *sql.DB
	DriverCredential *models.DriverCredentials
}

func GetOracleDriver

func GetOracleDriver(driverCredentials *models.DriverCredentials) (*OracleDriver, error)

GetOracleDriver creates a new Oracle project driver instance

func (*OracleDriver) AddCollection

func (o *OracleDriver) AddCollection(ctx context.Context, param *models.CommonSystemParams) error

AddCollection adds a new collection to the project

func (*OracleDriver) AddDocumentToProject

func (o *OracleDriver) AddDocumentToProject(ctx context.Context, param *models.CommonSystemParams, doc *types.DefaultDocumentStructure) (interface{}, error)

AddDocumentToProject adds a new document to the project

func (*OracleDriver) AddFieldToModel

func (o *OracleDriver) AddFieldToModel(ctx context.Context, param *models.CommonSystemParams, isUpdate bool, repeatedGroupIdentifier string) (*models.ModelType, error)

AddFieldToModel adds a new field to an existing model in the project

func (*OracleDriver) AddModel

func (o *OracleDriver) AddModel(ctx context.Context, project *models.Project, model *models.ModelType) (*models.ProjectSchema, error)

AddModel adds a new model to the project

func (*OracleDriver) AddRelationFields

func (o *OracleDriver) AddRelationFields(ctx context.Context, param *models.CommonSystemParams, sourceModel, targetModel, relationType string) error

AddRelationFields adds relation fields to a model (no-op for Oracle)

func (*OracleDriver) AddTeamMetaInfo

AddTeamMetaInfo adds team meta info to a document

func (*OracleDriver) AggregateDocOfProject

func (o *OracleDriver) AggregateDocOfProject(ctx context.Context, param *models.CommonSystemParams, pipeline interface{}) (interface{}, error)

AggregateDocOfProject performs aggregation on documents

func (*OracleDriver) AggregateDocOfProjectBytes

func (o *OracleDriver) AggregateDocOfProjectBytes(ctx context.Context, param *models.CommonSystemParams, pipeline interface{}) ([]byte, error)

AggregateDocOfProjectBytes performs aggregation on documents (bytes version)

func (*OracleDriver) CheckCollectionExists

func (o *OracleDriver) CheckCollectionExists(ctx context.Context, param *models.CommonSystemParams, isRelationCollection bool) (bool, error)

CheckCollectionExists checks if a collection exists in the project

func (*OracleDriver) CheckOneToOneRelationExists

func (o *OracleDriver) CheckOneToOneRelationExists(ctx context.Context, param *models.CommonSystemParams, fromId, toId, relationName string) (bool, error)

CheckOneToOneRelationExists checks if a one-to-one relation already exists

func (*OracleDriver) Close

func (o *OracleDriver) Close() error

Close closes the Oracle database connection

func (*OracleDriver) ConnectBuilder

func (o *OracleDriver) ConnectBuilder(ctx context.Context, projectId, userId string) error

ConnectBuilder connects a builder to the project

func (*OracleDriver) ConvertModel

func (o *OracleDriver) ConvertModel(ctx context.Context, project *models.Project, modelName string) error

ConvertModel converts a model in the project (no-op for Oracle)

func (*OracleDriver) CountDocOfProject

func (o *OracleDriver) CountDocOfProject(ctx context.Context, param *models.CommonSystemParams) (int, error)

CountDocOfProject counts documents in a project

func (*OracleDriver) CountDocOfProjectBytes

func (o *OracleDriver) CountDocOfProjectBytes(ctx context.Context, param *models.CommonSystemParams) (int, error)

CountDocOfProjectBytes counts documents in a project (bytes version)

func (*OracleDriver) CountMultiDocumentOfProject

func (o *OracleDriver) CountMultiDocumentOfProject(ctx context.Context, param *models.CommonSystemParams, condition map[string]interface{}) (int, error)

CountMultiDocumentOfProject counts multiple documents with filters

func (*OracleDriver) CreateIndex

func (o *OracleDriver) CreateIndex(ctx context.Context, param *models.CommonSystemParams, fieldName string, repeatedGroupIdentifier string) error

CreateIndex creates an index for a model in the project

func (*OracleDriver) CreateRelation

CreateRelation creates a new relation between documents

func (*OracleDriver) DeleteDocumentFromProject

func (o *OracleDriver) DeleteDocumentFromProject(ctx context.Context, param *models.CommonSystemParams) error

DeleteDocumentFromProject deletes a document from the project

func (*OracleDriver) DeleteDocumentRelation

func (o *OracleDriver) DeleteDocumentRelation(ctx context.Context, param *models.CommonSystemParams) error

DeleteDocumentRelation deletes all relations or data in pivot tables from the project

func (*OracleDriver) DeleteDocumentsFromProject

func (o *OracleDriver) DeleteDocumentsFromProject(ctx context.Context, param *models.CommonSystemParams) error

DeleteDocumentsFromProject deletes multiple documents from the project

func (*OracleDriver) DeleteMediaFile

func (o *OracleDriver) DeleteMediaFile(ctx context.Context, param *models.CommonSystemParams) error

DeleteMediaFile deletes a media file document

func (*OracleDriver) DeleteProject

func (o *OracleDriver) DeleteProject(ctx context.Context, projectID string) error

DeleteProject deletes a project and all related data

func (*OracleDriver) DeleteRelation

func (o *OracleDriver) DeleteRelation(ctx context.Context, param *models.CommonSystemParams, relationID string) error

DeleteRelation deletes a specific relation

func (*OracleDriver) DeleteRelationDocuments

func (o *OracleDriver) DeleteRelationDocuments(ctx context.Context, param *models.CommonSystemParams, relationshipName string) error

DeleteRelationDocuments deletes relation documents for a specific relation

func (*OracleDriver) DisconnectBuilder

func (o *OracleDriver) DisconnectBuilder(ctx context.Context, projectId, userId string) error

DisconnectBuilder disconnects a builder from the project

func (*OracleDriver) DropField

func (o *OracleDriver) DropField(ctx context.Context, param *models.CommonSystemParams, fieldName string) error

DropField drops a field from all documents in a collection

func (*OracleDriver) DropIndex

func (o *OracleDriver) DropIndex(ctx context.Context, param *models.CommonSystemParams, indexName string) error

DropIndex drops an index from a model in the project

func (*OracleDriver) DropModel

func (o *OracleDriver) DropModel(ctx context.Context, project *models.Project, modelName string) error

DropModel drops a model from the project

func (*OracleDriver) DuplicateModel

func (o *OracleDriver) DuplicateModel(ctx context.Context, param *models.CommonSystemParams, newModelName string) error

DuplicateModel duplicates a model by copying all its documents

func (*OracleDriver) GetAllRelationDocumentsOfSingleDocument

func (o *OracleDriver) GetAllRelationDocumentsOfSingleDocument(ctx context.Context, param *models.CommonSystemParams, documentID string) ([]*types.DefaultDocumentStructure, error)

GetAllRelationDocumentsOfSingleDocument gets all relation documents for a single document

func (*OracleDriver) GetLoggedInProjectUser

func (o *OracleDriver) GetLoggedInProjectUser(ctx context.Context, projectId, userId string) (*types.DefaultDocumentStructure, error)

GetLoggedInProjectUser gets a logged-in project user by user ID

func (*OracleDriver) GetProjectUser

func (o *OracleDriver) GetProjectUser(ctx context.Context, projectId, email, phone string) (*types.DefaultDocumentStructure, error)

GetProjectUser gets a project user by email or phone

func (*OracleDriver) GetProjectUsers

func (o *OracleDriver) GetProjectUsers(ctx context.Context, projectId string, userIds []string) ([]*types.DefaultDocumentStructure, error)

GetProjectUsers gets project users by their IDs

func (*OracleDriver) GetRelationDocument

GetRelationDocument retrieves a relation document

func (*OracleDriver) GetRelationIds

func (o *OracleDriver) GetRelationIds(ctx context.Context, param *models.CommonSystemParams, documentID, relationName string) ([]string, error)

GetRelationIds gets relation IDs for a document

func (*OracleDriver) GetSingleProjectDocument

func (o *OracleDriver) GetSingleProjectDocument(ctx context.Context, param *models.CommonSystemParams) (*types.DefaultDocumentStructure, error)

GetSingleProjectDocument retrieves a single document by its ID

func (*OracleDriver) GetSingleProjectDocumentBytes

func (o *OracleDriver) GetSingleProjectDocumentBytes(ctx context.Context, param *models.CommonSystemParams) ([]byte, error)

GetSingleProjectDocumentBytes retrieves a single document as bytes

func (*OracleDriver) GetSingleProjectDocumentRevisions

func (o *OracleDriver) GetSingleProjectDocumentRevisions(ctx context.Context, param *models.CommonSystemParams) ([]*types.DefaultDocumentStructure, error)

GetSingleProjectDocumentRevisions retrieves document revisions

func (*OracleDriver) GetSingleRawDocumentFromProject

func (o *OracleDriver) GetSingleRawDocumentFromProject(ctx context.Context, param *models.CommonSystemParams) (interface{}, error)

GetSingleRawDocumentFromProject retrieves a raw document

func (*OracleDriver) NewInsertableRelations

func (o *OracleDriver) NewInsertableRelations(ctx context.Context, param *models.CommonSystemParams, relations []*types.DefaultDocumentStructure) ([]*types.DefaultDocumentStructure, error)

NewInsertableRelations creates new insertable relations

func (*OracleDriver) QueryMultiDocumentOfProject

func (o *OracleDriver) QueryMultiDocumentOfProject(ctx context.Context, param *models.CommonSystemParams) ([]*types.DefaultDocumentStructure, error)

QueryMultiDocumentOfProject retrieves multiple documents from a project

func (*OracleDriver) QueryMultiDocumentOfProjectBytes

func (o *OracleDriver) QueryMultiDocumentOfProjectBytes(ctx context.Context, param *models.CommonSystemParams) ([]byte, error)

QueryMultiDocumentOfProjectBytes retrieves multiple documents as bytes

func (*OracleDriver) RelationshipDataLoader

func (o *OracleDriver) RelationshipDataLoader(ctx context.Context, param *models.CommonSystemParams, ids []string) ([]*types.DefaultDocumentStructure, error)

RelationshipDataLoader loads relationship data

func (*OracleDriver) RelationshipDataLoaderBytes

func (o *OracleDriver) RelationshipDataLoaderBytes(ctx context.Context, param *models.CommonSystemParams, ids []string) ([][]byte, error)

RelationshipDataLoaderBytes loads relationship data as bytes

func (*OracleDriver) RenameField

func (o *OracleDriver) RenameField(ctx context.Context, param *models.CommonSystemParams, oldFieldName, newFieldName string) error

RenameField renames a field in all documents in a collection

func (*OracleDriver) RenameModel

func (o *OracleDriver) RenameModel(ctx context.Context, project *models.Project, modelName, newName string) error

RenameModel renames a model in the project

func (*OracleDriver) TransferProject

func (o *OracleDriver) TransferProject(ctx context.Context, userId, from, to string) error

TransferProject transfers a project from one user to another

func (*OracleDriver) UpdateDocumentOfProject

func (o *OracleDriver) UpdateDocumentOfProject(ctx context.Context, param *models.CommonSystemParams, doc *types.DefaultDocumentStructure, replace bool) error

UpdateDocumentOfProject updates a particular document in the project

Jump to

Keyboard shortcuts

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