Documentation ¶
Index ¶
- type ClientProvider
- type ClientProviderFunc
- type DbProvider
- type DbWrap
- type HasTenant
- func (HasTenant) DeleteClauses(f *schema.Field) []clause.Interface
- func (t HasTenant) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr)
- func (t HasTenant) MarshalJSON() ([]byte, error)
- func (HasTenant) QueryClauses(f *schema.Field) []clause.Interface
- func (t *HasTenant) Scan(value interface{}) error
- func (t HasTenant) UnmarshalJSON(b []byte) error
- func (HasTenant) UpdateClauses(f *schema.Field) []clause.Interface
- func (t HasTenant) Value() (driver.Value, error)
- type HasTenantDeleteClause
- type HasTenantQueryClause
- type HasTenantUpdateClause
- type MultiTenancy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientProvider ¶
type ClientProvider saas.ClientProvider[*gorm.DB]
type ClientProviderFunc ¶
type ClientProviderFunc saas.ClientProviderFunc[*gorm.DB]
type DbProvider ¶
type DbProvider saas.DbProvider[*gorm.DB]
func NewDbProvider ¶
func NewDbProvider(cs data.ConnStrResolver, cp ClientProvider) DbProvider
type HasTenant ¶
type HasTenant sql.NullString
func NewTenantId ¶
func (HasTenant) MarshalJSON ¶
func (HasTenant) UnmarshalJSON ¶
type HasTenantDeleteClause ¶
func (HasTenantDeleteClause) Build ¶
func (sd HasTenantDeleteClause) Build(clause.Builder)
func (HasTenantDeleteClause) MergeClause ¶
func (sd HasTenantDeleteClause) MergeClause(*clause.Clause)
func (HasTenantDeleteClause) ModifyStatement ¶
func (sd HasTenantDeleteClause) ModifyStatement(stmt *gorm.Statement)
func (HasTenantDeleteClause) Name ¶
func (sd HasTenantDeleteClause) Name() string
type HasTenantQueryClause ¶
func (HasTenantQueryClause) Build ¶
func (sd HasTenantQueryClause) Build(clause.Builder)
func (HasTenantQueryClause) MergeClause ¶
func (sd HasTenantQueryClause) MergeClause(*clause.Clause)
func (HasTenantQueryClause) ModifyStatement ¶
func (sd HasTenantQueryClause) ModifyStatement(stmt *gorm.Statement)
func (HasTenantQueryClause) Name ¶
func (sd HasTenantQueryClause) Name() string
type HasTenantUpdateClause ¶
func (HasTenantUpdateClause) Build ¶
func (sd HasTenantUpdateClause) Build(clause.Builder)
func (HasTenantUpdateClause) MergeClause ¶
func (sd HasTenantUpdateClause) MergeClause(*clause.Clause)
func (HasTenantUpdateClause) ModifyStatement ¶
func (sd HasTenantUpdateClause) ModifyStatement(stmt *gorm.Statement)
func (HasTenantUpdateClause) Name ¶
func (sd HasTenantUpdateClause) Name() string
type MultiTenancy ¶
type MultiTenancy struct {
TenantId HasTenant `gorm:"index"`
}
MultiTenancy entity
Click to show internal directories.
Click to hide internal directories.