module DynFork::Globals
Overview
Global storage for data cache.
Included Modules
Defined in:
dynfork/globals/aliases.crdynfork/globals/store.cr
Class Method Summary
-
.database_name : String
Database name.
-
.database_name=(database_name : String)
Database name.
-
.mongo_client : Mongo::Client
Mongo client caching.
-
.mongo_client=(mongo_client : Mongo::Client)
Mongo client caching.
-
.mongo_client? : Mongo::Client | Nil
Mongo client caching.
-
.mongo_database : Mongo::Database
Mongo database caching.
-
.mongo_database=(mongo_database : Mongo::Database)
Mongo database caching.
-
.mongo_database? : Mongo::Database | Nil
Mongo database caching.
-
.regex : CacheRegexType
Regex caching.
-
.super_collection_name
Super collection name caching.
Instance methods inherited from module DynFork::Globals::Date
date_parse(date : String) : Time
date_parse,
datetime_parse(datetime : String) : Time
datetime_parse
Class Method Detail
def self.super_collection_name
#
Super collection name caching.
Super collection is used for:
- Store technical data for Models migration into a database.
- Store dynamic field data for simulate relationship Many-to-One and Many-to-ManyŃ.