gorm

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(dbType, connect string) (*gorm.DB, error)

Types

type OrganizationStore

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

func NewOrganizationStore

func NewOrganizationStore(db *gorm.DB) (*OrganizationStore, error)

func (*OrganizationStore) Count

func (o *OrganizationStore) Count(ctx context.Context, filter ...domain.OrganizationFilter) (int, error)

func (*OrganizationStore) Delete

func (*OrganizationStore) Filter

func (*OrganizationStore) Get

func (*OrganizationStore) Put

func (*OrganizationStore) Shutdown

func (o *OrganizationStore) Shutdown(ctx context.Context) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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