Documentation ¶
Index ¶
- func GormOpenDB() (*gorm.DB, error)
- func NewGormRepostory() repositories.ISqliteRepository
- type SQLiteRepository
- func (sql *SQLiteRepository) All(limit int) ([]entity.Commands, int, error)
- func (sql *SQLiteRepository) Count() (int, error)
- func (sql SQLiteRepository) InsertParsed(data string)
- func (sql *SQLiteRepository) Migrate() error
- func (sql *SQLiteRepository) Pagination(limit int, offset int) ([]entity.Commands, error)
- func (sql *SQLiteRepository) Search(filter string, limit int, skip int) ([]entity.Commands, int, error)
- func (sql *SQLiteRepository) SearchCount(filter string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GormOpenDB ¶
func NewGormRepostory ¶
func NewGormRepostory() repositories.ISqliteRepository
Types ¶
type SQLiteRepository ¶
type SQLiteRepository struct {
// contains filtered or unexported fields
}
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 ¶
Pagination implements repositories.ISqliteRepository
func (*SQLiteRepository) SearchCount ¶
func (sql *SQLiteRepository) SearchCount(filter string) (int, error)
Click to show internal directories.
Click to hide internal directories.