Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-12 Thread eftomi
Esteban, if time permits, could you please describe what situations lead to crashes, and with which images? Thanks, Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Tomaž Turk
managed yet to re-check if all the COM instances are properly released after usage. Best wishes Tomaz -- Original Message -- From: "Esteban Maringolo" To: "Tomaž Turk" Cc: "Any question about pharo is welcome" Sent: 11. 03. 2020 20:35:10 Subject: Re: Re[2]

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
;> readme? There you have a direct access to each record at a time, and then >>> you can create your own "loop" to process the query result. In this way you >>> can avoid the loop in ADOClient>>query: method. >>> >>> Best wishes, >>>

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
ry: method. >> >> Best wishes, >> Tomaz >> >> -- Original Message -- >> From: "Esteban Maringolo" >> To: "Tomaž Turk" ; "Any question about pharo is >> welcome" >> Sent: 11. 03. 2020 18:25:51 >> Su

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
o" > To: "Tomaž Turk" ; "Any question about pharo is > welcome" > Sent: 11. 03. 2020 18:25:51 > Subject: Re: [Pharo-users] Generate class hierarchy from JSON Schema > > As an additional reference, I attach the profile tally for the query I'm > mentioning

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Tomaž Turk
ess the query result. In this way you can avoid the loop in ADOClient>>query: method. Best wishes, Tomaz -- Original Message -- From: "Esteban Maringolo" To: "Tomaž Turk" ; "Any question about pharo is welcome" Sent: 11. 03. 2020 18:25:51 Subje

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
As an additional reference, I attach the profile tally for the query I'm mentioning. The culprit seems to be the calculation of the ADOField properties that might be calculated on every call. Regards, Esteban A. Maringolo On Wed, Mar 11, 2020 at 2:13 PM Esteban Maringolo wrote: > Hi, > >

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
Hi, To feed a Pharo app I need to read from an old MDB file, via ODBC. So I tested PharoADO and, after adding a missing Variant Type [1], I got my query working (at least read only). However the time of ADOClient to return a query with 10K rows of 5 columns each is extremely slow (+65000ms)

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-24 Thread Tomaž Turk
That would be amazing! I'm a Mac/Unix guy so I don't have access to the other platforms (I suppose I could fire up an AWS Oracle). I can do mysql/mariadb, posgresql, and sqlite. I'm pretty close to pushing my ActiveRecord extensions. I just need to get many to many with link tables done

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-22 Thread Todd Blanchard via Pharo-users
--- Begin Message --- That would be amazing! I'm a Mac/Unix guy so I don't have access to the other platforms (I suppose I could fire up an AWS Oracle). I can do mysql/mariadb, posgresql, and sqlite. I'm pretty close to pushing my ActiveRecord extensions. I just need to get many to many with

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-22 Thread Tomaž Turk
Thanks, Todd - I'll prepare a PR for https://github.com/pharo-rdbms/glorp to update SQLServerPlatform and OraclePlatform. I already used the standardized query results format in PharoADO which works nicely with Glorp. You can find PharoADO here: https://github.com/eftomi/pharo-ado. Maybe it

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-21 Thread Norbert Hartl
Serge, as I mentioned at first you need to complain. I meant it that if you miss stuff I'm eager to add that. Of course it would be lovely if you do it yourself. Just saying that if there is need I can look into. Don't forget open issues on the git repo and add examples what you want to parse

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-20 Thread Serge Stinckwich
I had a look Norbert, but some features are missing like support for anyOf or multiple types like: { "type": ["string", "null"] } I need some time to understand how to add them. On Sat, Jan 18, 2020 at 9:55 AM wrote: > Great work ! I will have a look. > > I want to be able to generate

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-20 Thread Todd Blanchard via Pharo-users
--- Begin Message --- The official is https://github.com/pharo-rdbms/glorp (The one I forked at pharo-db - a username I need to change as it is causing confusion). I've been mostly working with P3 and SQLite together. I've standardized the query results format for fetching field definitions so

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-20 Thread eftomi
Todd, this is great, I didn't know that you are working on ActiveRecord. BTW, I have some minor additions to SQLServerPlatform (support for National Language Character Set) and OraclePlatform (Decimal data type) - is there a central git repository for Glorp so that I could PR to? Thanks and best

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-19 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I have some work around building class hierarchies from database schema - specifically a Rails style Active Record schema. It is a bit of a work in progress and is intended to be folded into Glorp but you can see where I am at

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-18 Thread Eric Gade
Serge I would also be interested in seeing what you come up with. On Sat, Jan 18, 2020 at 3:56 AM wrote: > Great work ! I will have a look. > > I want to be able to generate JSON files following a JSON Schema with a > high level API. So my idea was to generate automatically from JSON Schema >

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-18 Thread serge . stinckwich
Great work ! I will have a look. I want to be able to generate JSON files following a JSON Schema with a high level API. So my idea was to generate automatically from JSON Schema the class hierarchy but a runtime model might be enough maybe. Regards, Sent from my iPhone > On 18 Jan 2020, at

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-18 Thread Norbert Hartl
We have https://github.com/zweidenker/JSONSchema which is an implementation of basic stuff in JSON schema. But it does not compile classes it just creates a runtime model. To be honest I never understood why we make the effort to compile classes for

[Pharo-users] Generate class hierarchy from JSON Schema

2020-01-18 Thread Serge Stinckwich
Hi there, anyone has experience about generating a class hierarchy from a JSON Schema ? Code available somewhere ? Thank you. -- Serge Stinckwic h Int. Research Unit on Modelling/Simulation of Complex Systems (UMMISCO) Sorbonne University (SU) French National Research Institute for