sqlite

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormOpenDB

func GormOpenDB() (*gorm.DB, error)

func NewGormRepostory

func NewGormRepostory() repositories.ISqliteRepository

Types

type SQLiteRepository

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

func (*SQLiteRepository) All

func (sql *SQLiteRepository) All(limit int) ([]entity.Commands, int, error)

func (*SQLiteRepository) Count

func (sql *SQLiteRepository) Count() (int, error)

func (SQLiteRepository) InsertParsed

func (sql SQLiteRepository) InsertParsed(data string)

func (*SQLiteRepository) Migrate

func (sql *SQLiteRepository) Migrate() error

func (*SQLiteRepository) Pagination

func (sql *SQLiteRepository) Pagination(limit int, offset int) ([]entity.Commands, error)

Pagination implements repositories.ISqliteRepository

func (*SQLiteRepository) Search

func (sql *SQLiteRepository) Search(filter string, limit int, skip int) ([]entity.Commands, int, error)

func (*SQLiteRepository) SearchCount

func (sql *SQLiteRepository) SearchCount(filter string) (int, error)

Jump to

Keyboard shortcuts

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