Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides access to the sqrl service
type Database ¶
Database provides access to the database service
func NewDatabase ¶
NewDatabase creates a new database connection
func (*Database) AutoMigrate ¶
func (d *Database) AutoMigrate(models ...interface{})
AutoMigrate migrates models to the database
type Migrator ¶
type Migrator struct { }
Migrator provides access to the database migrator service
func (*Migrator) AutoMigrate ¶
func (m *Migrator) AutoMigrate(models ...interface{})
AutoMigrate migrates models to the database
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository provides access to the repo service
func NewRepository ¶
func NewRepository(db *Database) *Repository
NewRepository returns a new Repository
Click to show internal directories.
Click to hide internal directories.