Documentation ¶
Index ¶
- func GetFields(e v1.Entity) ([]string, []reflect.Type, []string)
- type MemoryRepository
- type PostgresRepository
- func (r *PostgresRepository) CreateTable(e v1.Entity, ifNotExist bool) error
- func (r *PostgresRepository) Delete(i v1.Entity) (bool, error)
- func (r *PostgresRepository) DropTable(i v1.Entity, ifExists bool) error
- func (r *PostgresRepository) Get(i uuid.UUID) (v1.Entity, error)
- func (r *PostgresRepository) List() []v1.Entity
- func (r *PostgresRepository) Open(dataSourceName string) error
- func (r *PostgresRepository) Save(e v1.Entity, fields ...string) error
- func (r *PostgresRepository) Update(i v1.Entity, fields ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemoryRepository ¶
func (MemoryRepository) List ¶
func (m MemoryRepository) List() []v1.Entity
type PostgresRepository ¶
func (*PostgresRepository) CreateTable ¶
func (r *PostgresRepository) CreateTable(e v1.Entity, ifNotExist bool) error
func (*PostgresRepository) DropTable ¶
func (r *PostgresRepository) DropTable(i v1.Entity, ifExists bool) error
func (*PostgresRepository) List ¶
func (r *PostgresRepository) List() []v1.Entity
func (*PostgresRepository) Open ¶
func (r *PostgresRepository) Open(dataSourceName string) error
Click to show internal directories.
Click to hide internal directories.