[Pharo-users] connection string etc

2016-11-17 Thread Jeff Gray
I'm playing around with Garage. Initially it was easy to get a connection to MySQL and return some rows, so I'm looking forward to using it. Where would you typically keep a connection string, considering it also includes a password? An ini file? That seems rather old school :-) Or is there a bett

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Norbert Hartl
That would be something like "cannot connect to..." aka connection refused > Am 17.11.2016 um 20:57 schrieb stepharo : > > Did you check that your mongodb is running? > > > > Le 17/11/16 à 14:23, Asbath Sama biyalou via Pharo-users a écrit : > >

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread stepharo
Did you check that your mongodb is running? Le 17/11/16 à 14:23, Asbath Sama biyalou via Pharo-users a écrit :

Re: [Pharo-users] Is it possible to file out a class hierarchy ?

2016-11-17 Thread Paul DeBruicker
Thanks to you both. This is what I ended up with: |class file stream| class:=MyClass . file:=(class name asString, '-hierarchy.st') asFileReference. stream:=file writeStream. class fileOutOn:stream. class allSubclassesDo: [ :cls | cls fileOutOn: stream. ]. stream close. Hen

Re: [Pharo-users] Is it possible to file out a class hierarchy ?

2016-11-17 Thread Henrik Nergaard
| aStream aClass | aStream := '' writeStream. aClass := FTFilter. FTFilter fileOutOn: aStream. FTFilter allSubclassesDo: [ :cls | cls fileOutOn: aStream ]. "(ChunkFileFormatParser for: aStream contents readStream) parseChunks" --- Best regards, Henrik

Re: [Pharo-users] Is it possible to file out a class hierarchy ?

2016-11-17 Thread Denis Kudriashov
You could evaluate YourClass allSubclassesDo: #fileOut 2016-11-17 18:16 GMT+01:00 PAUL DEBRUICKER : > From a playground or nautilus is is possible to file out a class and all > of its subclasses into one file out? The subclasses are in different > packages, which I think is a confounding factor.

[Pharo-users] Is it possible to file out a class hierarchy ?

2016-11-17 Thread PAUL DEBRUICKER
From a playground or nautilus is is possible to file out a class and all of its subclasses into one file out? The subclasses are in different packages, which I think is a confounding factor. Thanks Paul

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Please When I execute initializeMongo I have a ConnectionTimedOut error. Is it my Internet connection or something else. Thanks On 17/11/2016 13:25, Norbert Hartl wrote: > > > Am 17.11.2016 um 13:12 schrieb Asbath Sama biyalou > mailto:asamabiya...@yahoo.com>>: > >> Please N

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Thanks. On 17/11/2016 13:25, Norbert Hartl wrote: > > > Am 17.11.2016 um 13:12 schrieb Asbath Sama biyalou > mailto:asamabiya...@yahoo.com>>: > >> Please Not very clear. Then I just execute that method in the >> playground and It is good. >> >> > yes > > Norbert >> On 17/11/

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Norbert Hartl
> Am 17.11.2016 um 13:12 schrieb Asbath Sama biyalou : > > Please Not very clear. Then I just execute that method in the playground and > It is good. > yes Norbert >> On 17/11/2016 12:55, Norbert Hartl wrote: >> Ahh, I see. Your initializeMongo is actually a configuration of the system. >> T

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Please Not very clear. Then I just execute that method in the playground and It is good. On 17/11/2016 12:55, Norbert Hartl wrote: > Ahh, I see. Your initializeMongo is actually a configuration of the > system. That configuration you do once in the image, hence the name > #e

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Norbert Hartl
Ahh, I see. Your initializeMongo is actually a configuration of the system. That configuration you do once in the image, hence the name #enableSingleton because it is accessible as singleton from everywhere. Norbert > Am 17.11.2016 um 12:44 schrieb Asbath Sama biyalou : > > Thanks. Just look

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Asbath Sama biyalou via Pharo-users
--- 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 th

Re: [Pharo-users] Mongo with Voyage

2016-11-17 Thread Norbert Hartl
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] Mongo with Voyage

2016-11-17 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Hello. I'am using pharo 4.0 with external mongo database (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 ---