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
> 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
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
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
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
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
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
> 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
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
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.
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
11 matches
Mail list logo