sql

package
v0.0.0-...-ff2bd9c Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnakeCase

func CamelToSnakeCase(input string) string

func GetCamelToSnakeCaseMapping

func GetCamelToSnakeCaseMapping(model interface{}) (map[string]string, error)

func IsNumber

func IsNumber(a interface{}) bool

Types

type GenericRepository

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

func (*GenericRepository) BulkInsert

func (r *GenericRepository) BulkInsert(ctx context.Context, data interface{}) (interface{}, error)

func (*GenericRepository) BulkUpsert

func (r *GenericRepository) BulkUpsert(ctx context.Context, data interface{}) (interface{}, error)

func (*GenericRepository) Delete

func (r *GenericRepository) Delete(ctx context.Context, data interface{}) (interface{}, error)

func (*GenericRepository) FindAll

func (r *GenericRepository) FindAll(ctx context.Context, params map[string]interface{}, conditionalOperations []repository.ConditionalOperation, relationalOperations []repository.RelationalOperation, page int, limit int, result interface{}) (interface{}, error)

func (*GenericRepository) FindByID

func (r *GenericRepository) FindByID(ctx context.Context, id uuid.UUID, result interface{}) (interface{}, error)

func (*GenericRepository) FindOne

func (r *GenericRepository) FindOne(ctx context.Context, key string, value interface{}, result interface{}) (interface{}, error)

func (*GenericRepository) Insert

func (r *GenericRepository) Insert(ctx context.Context, data interface{}) (interface{}, error)

func (*GenericRepository) Query

func (r *GenericRepository) Query(ctx context.Context, query string, params []interface{}, result interface{}) (interface{}, error)

func (*GenericRepository) Update

func (r *GenericRepository) Update(ctx context.Context, data interface{}) (interface{}, error)

func (*GenericRepository) Upsert

func (r *GenericRepository) Upsert(ctx context.Context, data interface{}) (interface{}, error)

type ImmutableGenericRepository

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

func (*ImmutableGenericRepository) BulkInsert

func (r *ImmutableGenericRepository) BulkInsert(ctx context.Context, data interface{}) (interface{}, error)

func (*ImmutableGenericRepository) FindAll

func (r *ImmutableGenericRepository) FindAll(ctx context.Context, params map[string]interface{}, conditionalOperations []repository.ConditionalOperation, relationalOperations []repository.RelationalOperation, page int, limit int, result interface{}) (interface{}, error)

func (*ImmutableGenericRepository) FindByID

func (r *ImmutableGenericRepository) FindByID(ctx context.Context, id uuid.UUID, result interface{}) (interface{}, error)

func (*ImmutableGenericRepository) FindOne

func (r *ImmutableGenericRepository) FindOne(ctx context.Context, key string, value interface{}, result interface{}) (interface{}, error)

func (*ImmutableGenericRepository) Insert

func (r *ImmutableGenericRepository) Insert(ctx context.Context, data interface{}) (interface{}, error)

func (*ImmutableGenericRepository) Query

func (r *ImmutableGenericRepository) Query(ctx context.Context, query string, params []interface{}, result interface{}) (interface{}, error)

Directories

Path Synopsis
We create this empty file as the workaround for this bug: https://github.com/golang/go/issues/27333
We create this empty file as the workaround for this bug: https://github.com/golang/go/issues/27333

Jump to

Keyboard shortcuts

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