#1 Re: mORMot 1 » Basic help » 2012-01-10 11:57:37

Thanks for the suggestions and help.

I've decided that I'm going to change to another package for SQLite for now, and come back to mORMot when I have a project with less time pressure and more emphasis on performance.

#2 Re: mORMot 1 » Basic help » 2012-01-09 09:57:39

I had a look at the documentation as you suggested, however am still in much the same state of confusion as before. Page 62 (1.4.1.8.3. Methods, not SQL) suggests that standard SQL statements are not used and replaced by handy methods that do much the same thing. It suggests that the CreateandFillPrepare method could (and should) be used in instead of a SELECT...FROM... SQL statement, but gives no reference as to how that might be used (or even where CreateandFillPrepare comes from).

At this point, I still have only just managed to be able to add some data to a database (largely by cannibalising code from sample project 2) and am trying to work out something as simple as the above SELECT...FROM... statement without success. I feel that there's something terribly vital that I have missed out.

#3 mORMot 1 » Basic help » 2012-01-04 14:29:19

HSAR
Replies: 6

Okay, I'm just going to come out and admit this. I have no clue what I am doing, whatsoever.

Can somebody explain to me the basic steps that have to happen for me to use Database.Add to successfully add a record to a given table in a database? I am working off sample project number 2 ("Embedded SQLite ORM"), but am completely lost. I understand that a record is created and added to the database, but have no clue how the table to be added to is given, or (if I'm honest) even what is really going on here with Models and TSQLRecords or what on earth TSQLRest is and/or what it does.

I have been programming in Delphi for only about a year, so I'm really struggling to use this. Current Delphi version (that I'm using) is XE2, 32-bit (although through several attempts I have got all the dependencies and imports done without error).

Board footer

Powered by FluxBB