Versions in this module Expand all Collapse all v0 v0.20.8 Jan 23, 2024 Changes in this version + const CollectionTypeAuth + const CollectionTypeBase + const CollectionTypeView + const DefaultIdAlphabet + const DefaultIdLength + const ParamAppSettings + const RequestAuthAdmin + const RequestAuthGuest + const RequestAuthRecord + type Admin struct + Avatar int + Email string + LastResetSentAt types.DateTime + PasswordHash string + TokenKey string + func (m *Admin) RefreshTokenKey() error + func (m *Admin) SetPassword(password string) error + func (m *Admin) TableName() string + func (m *Admin) ValidatePassword(password string) bool + type BackupFileInfo struct + Key string + Modified types.DateTime + Size int64 + type BaseModel struct + Created types.DateTime + Id string + Updated types.DateTime + func (m *BaseModel) GetCreated() types.DateTime + func (m *BaseModel) GetId() string + func (m *BaseModel) GetUpdated() types.DateTime + func (m *BaseModel) HasId() bool + func (m *BaseModel) IsNew() bool + func (m *BaseModel) MarkAsNew() + func (m *BaseModel) MarkAsNotNew() + func (m *BaseModel) PostScan() error + func (m *BaseModel) RefreshCreated() + func (m *BaseModel) RefreshId() + func (m *BaseModel) RefreshUpdated() + func (m *BaseModel) SetId(id string) + type Collection struct + CreateRule *string + DeleteRule *string + Indexes types.JsonArray[string] + ListRule *string + Name string + Options types.JsonMap + Schema schema.Schema + System bool + Type string + UpdateRule *string + ViewRule *string + func (m *Collection) AuthOptions() CollectionAuthOptions + func (m *Collection) BaseFilesPath() string + func (m *Collection) BaseOptions() CollectionBaseOptions + func (m *Collection) DecodeOptions(result any) error + func (m *Collection) IsAuth() bool + func (m *Collection) IsBase() bool + func (m *Collection) IsView() bool + func (m *Collection) NormalizeOptions() error + func (m *Collection) SetOptions(typedOptions any) error + func (m *Collection) TableName() string + func (m *Collection) ViewOptions() CollectionViewOptions + func (m Collection) MarshalJSON() ([]byte, error) + type CollectionAuthOptions struct + AllowEmailAuth bool + AllowOAuth2Auth bool + AllowUsernameAuth bool + ExceptEmailDomains []string + ManageRule *string + MinPasswordLength int + OnlyEmailDomains []string + OnlyVerified bool + RequireEmail bool + func (o CollectionAuthOptions) Validate() error + type CollectionBaseOptions struct + func (o CollectionBaseOptions) Validate() error + type CollectionViewOptions struct + Query string + func (o CollectionViewOptions) Validate() error + type ColumnValueMapper interface + ColumnValueMap func() map[string]any + type ExternalAuth struct + CollectionId string + Provider string + ProviderId string + RecordId string + func (m *ExternalAuth) TableName() string + type FilesManager interface + BaseFilesPath func() string + type Log struct + Data types.JsonMap + Level int + Message string + func (m *Log) TableName() string + type Model interface + GetCreated func() types.DateTime + GetId func() string + GetUpdated func() types.DateTime + HasId func() bool + IsNew func() bool + MarkAsNew func() + MarkAsNotNew func() + RefreshCreated func() + RefreshId func() + RefreshUpdated func() + SetId func(id string) + TableName func() string + type Param struct + Key string + Value types.JsonRaw + func (m *Param) TableName() string + type Record struct + func NewRecord(collection *Collection) *Record + func NewRecordFromNullStringMap(collection *Collection, data dbx.NullStringMap) *Record + func NewRecordsFromNullStringMaps(collection *Collection, rows []dbx.NullStringMap) []*Record + func (m *Record) BaseFilesPath() string + func (m *Record) CleanCopy() *Record + func (m *Record) Collection() *Collection + func (m *Record) ColumnValueMap() map[string]any + func (m *Record) Email() string + func (m *Record) EmailVisibility() bool + func (m *Record) Expand() map[string]any + func (m *Record) ExpandedAll(relField string) []*Record + func (m *Record) ExpandedOne(relField string) *Record + func (m *Record) FindFileFieldByFile(filename string) *schema.SchemaField + func (m *Record) Get(key string) any + func (m *Record) GetBool(key string) bool + func (m *Record) GetDateTime(key string) types.DateTime + func (m *Record) GetFloat(key string) float64 + func (m *Record) GetInt(key string) int + func (m *Record) GetString(key string) string + func (m *Record) GetStringSlice(key string) []string + func (m *Record) GetTime(key string) time.Time + func (m *Record) IgnoreEmailVisibility(state bool) + func (m *Record) LastResetSentAt() types.DateTime + func (m *Record) LastVerificationSentAt() types.DateTime + func (m *Record) Load(data map[string]any) + func (m *Record) MergeExpand(expand map[string]any) + func (m *Record) OriginalCopy() *Record + func (m *Record) PasswordHash() string + func (m *Record) PublicExport() map[string]any + func (m *Record) RefreshTokenKey() error + func (m *Record) ReplaceModifers(data map[string]any) map[string]any + func (m *Record) SchemaData() map[string]any + func (m *Record) Set(key string, value any) + func (m *Record) SetEmail(email string) error + func (m *Record) SetEmailVisibility(visible bool) error + func (m *Record) SetExpand(expand map[string]any) + func (m *Record) SetLastResetSentAt(dateTime types.DateTime) error + func (m *Record) SetLastVerificationSentAt(dateTime types.DateTime) error + func (m *Record) SetPassword(password string) error + func (m *Record) SetTokenKey(key string) error + func (m *Record) SetUsername(username string) error + func (m *Record) SetVerified(verified bool) error + func (m *Record) TableName() string + func (m *Record) TokenKey() string + func (m *Record) UnknownData() map[string]any + func (m *Record) UnmarshalJSON(data []byte) error + func (m *Record) UnmarshalJSONField(key string, result any) error + func (m *Record) Username() string + func (m *Record) ValidatePassword(password string) bool + func (m *Record) Verified() bool + func (m *Record) WithUnknownData(state bool) + func (m Record) MarshalJSON() ([]byte, error) + type Request struct + Auth string + Meta types.JsonMap + Method string + Referer string + RemoteIp string + Status int + Url string + UserAgent string + UserIp string + func (m *Request) TableName() string + type RequestInfo struct + Admin *Admin + AuthRecord *Record + Data map[string]any + Headers map[string]any + Method string + Query map[string]any + func (r *RequestInfo) HasModifierDataKeys() bool + type TableInfoRow struct + DefaultValue types.JsonRaw + Index int + Name string + NotNull bool + PK int + Type string