Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Uniface Development: Slurp'n burp

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

16 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

ulrich-merkel said Hi Knut, I would just use the case load (CIF) functionality. ...

Over the weekend, I just constructed a basic prototype CIF generator for a MySQL "load definition". Looks promising. It takes only free-of-charge tools like "Toad for MySQL" and (M)AWK.EXE and does not require any database hopping. But as I neither own a uniface mysql license nor have some representative database structures which awaiting loading, I could not verify the transformation is correct and not proof that "the usual spectrum of datatypes" are covered. So if someone with a license and some (or a lot of) databases is interested in a cooperation, please contact me. Greetings from a sunny Frankfurt/Germany morning, Uli


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

Arjen van Vliet said I just noticed that this thread is posted in the 'Uniface Jobs' section of the forum Confused ?

I've moved the topic now to 'Uniface Development'.


Author: diseli (daniel.iseli@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

I just noticed that this thread is posted in the 'Uniface Jobs' section of the forum Confused ?


Author: Arjen van Vliet (arjen.van.vliet@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

Funny how all of these memories come back - I learned the phrase from non other than Roy Franzen - it might have been around files - but stuck when the DB drivers started to 'slurp' as well ...Laugh


Author: Knut (knut.dybendahl@gmail.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

Adrian Gosbell said Hey Knut, I've been reminded by Henk that burp and slurp is old time for filedump and fileload!  Actually in my head, I thought it was related to those old txt file im/out superkey combinations from the old CHUI days. But I'm not the oldest timer in Uniface land! 

It's not on topic for Load Defs, but Adrian is equally correct: Uniface macros like ^SAVE, ^INS_FILE and ^REM_FILE used to be mapped to keys/key combinations in the CHUI days (the VT100 keyboard translation tables etc.). Those macros would perform actions similar to the proc statements file_load and file_dump.  Colloquially, in the Lab and probably in the Uniface courses of those days, these actions were called slurp for 'load' and burp for 'dump'. I don't think these terms ever made it to the User Manual (1 manual!) back then. So much for memories of the old days ;-) 


Author: Henk van der Veer (henk.van.der.veer@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

Hey Knut, I've been reminded by Henk that burp and slurp is old time for filedump and fileload!  Actually in my head, I thought it was related to those old txt file im/out superkey combinations from the old CHUI days. But I'm not the oldest timer in Uniface land! 


Author: Adrian Gosbell (adrian.gosbell@synapse-i.jp)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

In my first answer in this topic where I mention 'Load definitions' in the first line, I should have said 'Load defaults', because that's what we're talking about, aren't we? Furthermore, by chatting to a Customer Support collegue over lunch, he was baffled by this. His suggestion is to first check if your usys:*.xml setting is defined right in your ASN file(s), for exemple: [FILES] usys:*.xml          usysadm:..\\misc\\*.xml


Author: Arjen van Vliet (arjen.van.vliet@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

Hi Uli, Being a solution consultant (sales engineer) for Uniface I sometimes forget that I'm always working with 'full size' license files Embarassed. You're rigth indeed: PostgreSQL driver is not included in the standard package, but SQLite driver is standard for 9.7 and the higher 9.6 versions. Cheers, Arjen


Author: Arjen van Vliet (arjen.van.vliet@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

IIRC, when we investigated in this database hopping, there was an issue that we had to buy a license for that additional database.


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:18 AM UTC

Slurp'n burp

Author: knut.dybendahl@gmail.com (Knut)

In many ways, this 'old' term is something I've always loved about Uniface; Point an empty Uniface repository (model wise) to one of many RDBMS's - and hey presto, Uniface 'slurps' in the table definitions, fields and keys and 'burps' those said definitions into the model. Unfortunately, there isn't such a feature for MySQL - whilst there is one available for PostgrSQL.... Short of attempting to export / convert a couple of hundred tables to MS-SQL or Oracle - and then 'slurp' from there - is there anybody out there who have any other method easily available? To the lab - are there any plans of adding this to the MySQL driver? Here's to hoping... Knut

You're welcome Knut  Smile In case you'd still like to use any part of my plan: - Don't forget to use the IDF: path (not the DEF: path) - Define redirection of your *.xml files in your ASN file for convienience - Use the command line option for copying out: (/cpy idf:*.dict xml:) to prevent the plan turning into a table-by-table exercise. - Use the command line option for copying in: (/cpy xml:*.xml idf:) to prevent the plan turning into a table-by-table exercise. Comparing my plan with your plan I think: - My plan will cost extra time on setting up a database that you don't want in the end (SQLite or PostgreSQL) - My plan will save time on not having to change/tweak any Uniface definitions. The larger your number of tables, the more my plan will save time, I think Not that it's a competition, it's just an alternative Laugh Best Regards, Arjen


Author: Arjen van Vliet (arjen.van.vliet@uniface.com)