Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnString ¶
type DB ¶
type DB interface { GetPhonesByEmailPrefix(ctx context.Context, prefix string) ([]*FoundPhone, error) Close() }
func NewDB ¶
func NewDB(connStr *ConnString) (DB, error)
type Employee ¶
type Employee struct { ID int `gorm:"column:id"` FirstName string `gorm:"column:first_name"` LastName string `gorm:"column:last_name"` Salary string `gorm:"column:salary"` ManagerID int `gorm:"column:manager_id"` Department int `gorm:"column:department"` Position int `gorm:"column:position"` EntryAt time.Time `gorm:"column:entry_at"` Phone string `gorm:"column:phone"` Email string `gorm:"column:email"` }
Click to show internal directories.
Click to hide internal directories.