Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseProvider ¶
DatabaseProvider is a struct that holds the database connection.
func (*DatabaseProvider) Connect ¶
func (s *DatabaseProvider) Connect() error
Connect initializes the SQLite database connection.
func (*DatabaseProvider) GetDB ¶
func (s *DatabaseProvider) GetDB() *gorm.DB
GetDB returns the database connection.
func (*DatabaseProvider) Migrate ¶
func (s *DatabaseProvider) Migrate() error
Migrate performs the database schema migration for the Block model.
Click to show internal directories.
Click to hide internal directories.