Re: [Development] Request moving project to playground area

2021-01-27 Thread Hamed Masafi
Sorry about pursuing an old thread. but I want to know what you think of this old proposal. Over the years, Nott has had many improvements: - Macro mechanisms are removed and what remains is much like writing a normal classroom. - Many of the problems that have been resolved and used for our compa

Re: [Development] Request moving project to playground area

2017-02-04 Thread Hamed Masafi
> To achieve this I think it's possible to use the property system + a custom > subclass > of QObject. If you watnt to expose this objects to QML you will need to > declare a > Q_PROPERTY, so It's not convenient. Nut macro declare a static method to helping query writing as descripted in github

Re: [Development] Request moving project to playground area

2017-02-04 Thread Jesus Fernandez
On Saturday, February 04, 2017 07:05:41 AM Hamed Masafi wrote: > Why not using Q_PROPERTY instead of NUT_DECLARE_FIELD? > > A property im table is more thsn a just Qt property, that macro create > property and static field for query writing and class info about property > to add to database. To a

Re: [Development] Request moving project to playground area

2017-02-03 Thread Hamed Masafi
Why not using Q_PROPERTY instead of NUT_DECLARE_FIELD? A property im table is more thsn a just Qt property, that macro create property and static field for query writing and class info about property to add to database. And what's the reason to have a constructor as Q_INVOKABLE? Andre right abou

Re: [Development] Request moving project to playground area

2017-02-03 Thread Konstantin Tokarev
03.02.2017, 01:07, "Milian Wolff" : > On Donnerstag, 2. Februar 2017 20:38:00 CET Hamed Masafi wrote: >>  Project Name: Nut (currently renamed to ORM) >> >>  Description: ORM is a project aimed to help users working with databases. >>  Developer will write his/her own classes and ORM will generat

Re: [Development] Request moving project to playground area

2017-02-03 Thread André Somers
Op 03/02/2017 om 10:18 schreef Jesus Fernandez: On Thursday, February 02, 2017 07:38:00 PM Hamed Masafi wrote: Declaring persistant objects in ORM is straightforward: class Comment : public Table { Q_OBJECT NUT_PRIMARY_AUTO_INCREMENT(id) NUT_DECLARE_FIELD

Re: [Development] Request moving project to playground area

2017-02-03 Thread Jesus Fernandez
On Thursday, February 02, 2017 07:38:00 PM Hamed Masafi wrote: > Declaring persistant objects in ORM is straightforward: > > class Comment : public Table > { > Q_OBJECT > > NUT_PRIMARY_AUTO_INCREMENT(id) > NUT_DECLARE_FIELD(int, id, id, setId) > NUT_DECLARE

Re: [Development] Request moving project to playground area

2017-02-02 Thread Hamed Masafi
> What are the advantages of NUT/ORM over existing, proven technologies like > ODB? Odb is other than QtSql module, but Nut use Qt so is familiar to Qt developers. Odb has own compiler for pre-compiler declaratives and is hard to use for beginners. But Nut use macro hack and no need another tool fo

Re: [Development] Request moving project to playground area

2017-02-02 Thread Kevin Kofler
Hamed Masafi wrote: > This project currently... : > - has code name 'Nut' and suggested name is ORM. But it may have any > other name. ORM is way too generic a name. It needs to be called at least QORM or QtORM or ORM-Qt or something, if you cannot think of a more original name. (But the name

Re: [Development] Request moving project to playground area

2017-02-02 Thread Milian Wolff
On Donnerstag, 2. Februar 2017 20:38:00 CET Hamed Masafi wrote: > Project Name: Nut (currently renamed to ORM) > > Description: ORM is a project aimed to help users working with databases. > Developer will write his/her own classes and ORM will generates database > schema and corresponding tables.

[Development] Request moving project to playground area

2017-02-02 Thread Hamed Masafi
Project Name: Nut (currently renamed to ORM) Description: ORM is a project aimed to help users working with databases. Developer will write his/her own classes and ORM will generates database schema and corresponding tables. ORM can generate database migration code (create, drop and alter table an