Puoi accedere ai fields class e splat le chiavi dell'hash contro attr_readonly . Ad esempio:
class Model
include Mongoid::Document
attr_readonly *fields.keys
end
Nota che, fields.keys includerà _id e _type .
Puoi accedere ai fields class e splat le chiavi dell'hash contro attr_readonly . Ad esempio:
class Model
include Mongoid::Document
attr_readonly *fields.keys
end
Nota che, fields.keys includerà _id e _type .
Prossima fermata:costruire una pipeline di dati da Edge a Insight
Connettiti a più host mongo db ed esegui l'autenticazione utilizzando un database diverso nell'avvio primaverile
$ Il compositore non riesce a trovare l'estensione mongodb, è richiesta l'estensione Mongodb
Distribuisci ScaleGrid DBaaS per Redis™ in AWS Virtual Private Cloud (VPC)