Documentation ¶
Index ¶
- func InitDB(database string) (*gorm.DB, func(), error)
- type Edge
- type SqlRepository
- func (r *SqlRepository) ClearAll(c context.Context) error
- func (r *SqlRepository) Create(c context.Context, edge domain.Edge) error
- func (r *SqlRepository) Delete(c context.Context, edge domain.Edge, queryMode bool) error
- func (r *SqlRepository) Get(c context.Context, edge domain.Edge, queryMode bool) ([]domain.Edge, error)
- func (r *SqlRepository) Ping(c context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SqlRepository ¶
type SqlRepository struct {
// contains filtered or unexported fields
}
func NewSqlRepository ¶
func NewSqlRepository(db *gorm.DB) (*SqlRepository, error)
Click to show internal directories.
Click to hide internal directories.