Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AutoMigrateSchemas(args ...string) error
- func (d *Dao) CreateAdmin(admin *entities.Admin) error
- func (d *Dao) CreateAuth(auth *entities.Auth) error
- func (d *Dao) CreateSchema(schemaName string) error
- func (d *Dao) DB() *gorm.DB
- func (d *Dao) Delete(model entities.Model) error
- func (d *Dao) DropSchema(schemaName string) error
- func (d *Dao) FindAdminByEmail(email string) (*entities.Admin, error)
- func (d *Dao) FindAdminById(id uuid.UUID) (*entities.Admin, error)
- func (d *Dao) FindAuthByIdentity(identity string) (*entities.Auth, error)
- func (d *Dao) FindBy(model entities.Model, where any) error
- func (d *Dao) MigrateSchema(schemaName string, args ...string) error
- func (d *Dao) ResetSchema() error
- func (d *Dao) Save(model entities.Model) error
- func (d *Dao) SaveAdmin(admin *entities.Admin) error
- func (d *Dao) Update(model entities.Model, where any, column string, value any) error
- func (d *Dao) UpdatePassword(identity, newPasswordHash string) error
- func (d *Dao) Updates(model entities.Model, updates entities.Model) error
- func (d *Dao) WithSchemaSession(schemaName string) (*gorm.DB, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func New ¶
func New( dbConn *gorm.DB, tenantConfig *config.TenantConfig, databaseConfig *config.DatabaseConfig, ) *Dao
func (*Dao) AutoMigrateSchemas ¶
func (*Dao) CreateSchema ¶
func (*Dao) DropSchema ¶
func (*Dao) FindAdminByEmail ¶
func (*Dao) FindAuthByIdentity ¶
func (*Dao) ResetSchema ¶
func (*Dao) UpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.