database

package
v0.0.0-...-75d87db Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(databaseURI string) *gorm.DB

Types

type DeleteOptions

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

type FindManyOptions

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

type FindOneOptions

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

type IDatabase

type IDatabase interface {
	Create(value interface{}) error
	CreateInBatches(value interface{}, batchSize int) error
	Update(value interface{}) error
	FindOne(dest interface{}, opts ...FindOneOptions) error
	FindMany(dest interface{}, opts ...FindManyOptions) error
	Delete(value interface{}, opts ...DeleteOptions) error
	Count(count *int64) error
}

type Query

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

Jump to

Keyboard shortcuts

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