package
Version:
v0.0.0-...-e01f8af
Opens a new window with list of versions in this module.
Published: Feb 28, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package repository provides a postgres implementation of the GIF repo interface
type Repo struct {
DB *gorm.DB
}
Repo provides access to the database through an abstraction
that allows for swapping out the datastore and not breaking
application logic
New initializes the repo with the ORM
InitDB provides hooks to ensure tables and migrations are performed
Insert will add a gif into the database
Last gets the latest entry from the database
Update performs updates to a record
Source Files
¶
Click to show internal directories.
Click to hide internal directories.