nosqlfs

package
v0.0.0-...-eecab09 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorCodeSQLCreate = domainerrors.ErrorCodeInfraDatasource + domainerrors.ErrorCodeInfraDatasource + domainerrors.ErrorCodeInfraDatasourceSQL + iota
	ErrorCodeSQLDelete
	ErrorCodeSQLUpdate
	ErrorCodeSQLUpdateWithFields
	ErrorCodeSQLGet
	ErrorCodeSQLGetAll
	ErrorCodeSQLCreateTx
	ErrorCodeSQLDeleteTx
	ErrorCodeSQLUpdateTx
	ErrorCodeSQLUpdateWithFieldsTx
	ErrorCodeSQLCast
	ErrorCodeSQLAppendAssociation
	ErrorCodeSQLReplaceAssociation
	ErrorCodeSQLRemoveAssociation
	ErrorCodeSQLGetAssociationCount
	ErrorCodeSQLAppendAssociationTx
	ErrorCodeSQLReplaceAssociationTx
	ErrorCodeSQLRemoveAssociationTx
)

Variables

View Source
var (
	ErrCastToEntityFailed = errors.New("cast to entity failed")
)

Functions

This section is empty.

Types

type CRUDDatasourceImpl

type CRUDDatasourceImpl struct {
	Client *firestore.Client
}

CRUDDatasourceImpl -.

func NewCRUDDatasourceImpl

func NewCRUDDatasourceImpl(db *firestoredb.Firestore) *CRUDDatasourceImpl

NewCRUDDatasourceImpl -.

func (*CRUDDatasourceImpl) Create

Create -.

func (*CRUDDatasourceImpl) CreateTx

Create -.

func (*CRUDDatasourceImpl) Delete

Delete -.

func (*CRUDDatasourceImpl) DeleteTx

Delete -.

func (*CRUDDatasourceImpl) GetAll

func (*CRUDDatasourceImpl) GetByID

GetByID -.

func (*CRUDDatasourceImpl) Update

Update -.

func (*CRUDDatasourceImpl) UpdateTx

Update -.

func (*CRUDDatasourceImpl) UpdateWithFields

func (r *CRUDDatasourceImpl) UpdateWithFields(ctx context.Context, model dto.IRepoEntity, fields []string) (dto.IRepoEntity, error)

UpdateWithFields -.

func (*CRUDDatasourceImpl) UpdateWithFieldsTx

func (r *CRUDDatasourceImpl) UpdateWithFieldsTx(ctx context.Context, model dto.IRepoEntity, fields []string, tx domain.ITransactionEvent) (dto.IRepoEntity, error)

UpdateWithFields -.

type TransactionDataSourceImpl

type TransactionDataSourceImpl struct {
	// contains filtered or unexported fields
}

TransactionDataSourceImpl -.

func NewTransactionRunDataSourceImpl

func NewTransactionRunDataSourceImpl(db *firestoredb.Firestore) *TransactionDataSourceImpl

NewTransactionDataSourceImpl -.

func (*TransactionDataSourceImpl) RunTransaction

RunTransaction -.

type TransactionEventDataSourceImpl

type TransactionEventDataSourceImpl struct {
	// contains filtered or unexported fields
}

func (*TransactionEventDataSourceImpl) GetTx

func (r *TransactionEventDataSourceImpl) GetTx() interface{}

Jump to

Keyboard shortcuts

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