Re: [Pharo-users] Import a pharo 6 image in pharo 7

2019-10-23 Thread Oswall Verny Arguedas C.
Thank you for your answers
I will try STON first.

After passing the data from pharo 6 image to pharo 7, I also want to move
it to Document Database.
This process is not vital at the moment, I can do it in steps.

For this reason, I asked about Mongo and CouchDB.

Oswall


El sáb., 19 de oct. de 2019 a la(s) 19:02, Sean P. DeNigris (
s...@clipperadams.com) escribió:

> Alejandro Infante wrote
> > I agree with the previous suggestions and use Fuel or STON.
>
> +1. Either of these methods is pretty much a one-liner. The main hiccup
> with
> Fuel is installing the same Fuel version in both the source and target
> images.
>
>
>
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>


Re: [Pharo-users] Import a pharo 6 image in pharo 7

2019-10-19 Thread Sean P. DeNigris
Alejandro Infante wrote
> I agree with the previous suggestions and use Fuel or STON.

+1. Either of these methods is pretty much a one-liner. The main hiccup with
Fuel is installing the same Fuel version in both the source and target
images.



-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Import a pharo 6 image in pharo 7

2019-10-19 Thread Alejandro Infante
I wouldn’t recommend Mongo for this use because it doesn’t automagically 
resolve cycles, so you would have to do a lot of work in order to serialize the 
data. I agree with the previous suggestions and use Fuel or STON.

Cheers,
Alejandro

> On Oct 19, 2019, at 4:16 PM, Oswall Verny Arguedas C.  
> wrote:
> 
> Thanks Sean and Sven
> 
> I'm going to investigate Ston and Fuel to do it.
> I also thought about passing the data to CouchDB (document database) and then 
> accessing from a clean Pharo 7 with Seaside and Bootstrap.
> How do you think the status of the drivers for Pharo for CouchDB is 
> currently. I used it for an application for production. Also Mongo but he 
> changed his license.
> Thanks in advance
> Oswall
> 
> El vie., 18 de oct. de 2019 a la(s) 12:07, Sean P. DeNigris 
> (s...@clipperadams.com ) escribió:
> Sven Van Caekenberghe-2 wrote
> > You could try to serialise/deserialise your data with... FUEL (binary).
> 
> If you use Fuel, this may help:
> https://github.com/seandenigris/pharo/wiki/Cookbook#fuel-migration 
> 
> 
> 
> 
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html 
> 
> 



Re: [Pharo-users] Import a pharo 6 image in pharo 7

2019-10-19 Thread Oswall Verny Arguedas C.
Thanks Sean and Sven

I'm going to investigate Ston and Fuel to do it.
I also thought about passing the data to CouchDB (document database) and
then accessing from a clean Pharo 7 with Seaside and Bootstrap.
How do you think the status of the drivers for Pharo for CouchDB is
currently. I used it for an application for production. Also Mongo but he
changed his license.
Thanks in advance
Oswall

El vie., 18 de oct. de 2019 a la(s) 12:07, Sean P. DeNigris (
s...@clipperadams.com) escribió:

> Sven Van Caekenberghe-2 wrote
> > You could try to serialise/deserialise your data with... FUEL (binary).
>
> If you use Fuel, this may help:
> https://github.com/seandenigris/pharo/wiki/Cookbook#fuel-migration
>
>
>
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>


Re: [Pharo-users] Import a pharo 6 image in pharo 7

2019-10-18 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote
> You could try to serialise/deserialise your data with... FUEL (binary).

If you use Fuel, this may help:
https://github.com/seandenigris/pharo/wiki/Cookbook#fuel-migration



-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Import a pharo 6 image in pharo 7

2019-10-18 Thread Sven Van Caekenberghe
Hi,

You could try to serialise/deserialise your data with either STON (textual) or 
FUEL (binary).

'mydata.ston' asFileReference writeStreamDo: [ :out | (STON writer on: out) 
nextPut: objectGraph ].

'mydata.ston' asFileReference readStreamDo: [ :in | (STON reader on: in) next ].

If you have more questions, just ask.

Sven

> On 18 Oct 2019, at 02:52, Oswall Verny Arguedas C.  wrote:
> 
> I have a prototype of an application with image persistence made in pharo 6.1.
> I wanted to export (upgrade) the data (database, objects, collections) of the 
> image and code to Pharo 7.
> It is possible to perform that operation.
> Thanks in advance
> Oswall
> 




[Pharo-users] Import a pharo 6 image in pharo 7

2019-10-17 Thread Oswall Verny Arguedas C.
I have a prototype of an application with image persistence made in pharo
6.1.
I wanted to export (upgrade) the data (database, objects, collections) of
the image and code to Pharo 7.
It is possible to perform that operation.
Thanks in advance
Oswall