--- Begin Message ---Thanks. Just look my function look like this: initializeMongo | repository | repository := VOMongoRepository host: 'example.com' port: 27017 database: 'example_name'. repository enableSingleton."Collections are created automatically as soon as you access them the first time." That is true but to connect to the database. In which I have to implement that method : all the root classes or what. On 17/11/2016 12:34, Norbert Hartl wrote: > I'm not sure what you mean with initialize. If you think about > creating the collections in mongo then you have to do nothing. > Collections are created automatically as soon as you access them the > first time. > > Norbert > > >> Am 17.11.2016 um 12:29 schrieb Asbath Sama biyalou via Pharo-users >> <pharo-users@lists.pharo.org <mailto:pharo-users@lists.pharo.org>>: >> >> >> *Von: *Asbath Sama biyalou <asamabiya...@yahoo.com >> <mailto:asamabiya...@yahoo.com>> >> *Betreff: **Mongo with Voyage* >> *Datum: *17. November 2016 um 12:29:24 MEZ >> *An: *pharo-users@lists.pharo.org <mailto:pharo-users@lists.pharo.org> >> >> >> Hello. >> I'am using pharo 4.0 with external mongo database (mongolab.com >> <http://mongolab.com>) >> I have like 7 classes which are voyageRoot. >> I want to know if I will initialize mongo in each class or in which >> class I can implement it. >> Thanks >> >> >> >
--- End Message ---
Re: [Pharo-users] Mongo with Voyage
Asbath Sama biyalou via Pharo-users Thu, 17 Nov 2016 03:47:32 -0800
- [Pharo-users] Mongo with Voyage Asbath Sama biyalou via Pharo-users
- Re: [Pharo-users] Mongo with Voya... Norbert Hartl
- Re: [Pharo-users] Mongo with ... Asbath Sama biyalou via Pharo-users
- Re: [Pharo-users] Mongo with ... Norbert Hartl
- Re: [Pharo-users] Mongo w... Asbath Sama biyalou via Pharo-users
- Re: [Pharo-users] Mongo w... Norbert Hartl
- Re: [Pharo-users] Mon... Asbath Sama biyalou via Pharo-users
- Re: [Pharo-users] Mon... Asbath Sama biyalou via Pharo-users
- Re: [Pharo-users... stepharo
- Re: [Pharo-u... Norbert Hartl