On 2017/11/07 11:52 PM, Alan Colburn wrote:
Hi everyone,
So I'm sort of a newbie/hobbyist. I understand the basics of Delphi,
including OOP principles, and I have a basic understanding of SQL
syntax. Now I'd like to learn about using databases with Delphi. I'm
looking for a tutorial for Delphi database newbies to help me learn
to create local, cross-platform databases. Looking for info online,
I'm overwhelmed with all the systems, drivers, and other things I
don't understand.
The way Delphi works is that most component packages work in the same
way. So if you learn one component package, the other ones are likely to
work in a similar way. Also, even if you go through an old Delphi
tutorial, alot is likely to still be true.
Which platform's are you actually wanting to target?
Delphi's cross-platform library is called Firemonkey.
You should find plenty of tutorials if you search for the following
terms (combined in different ways)
Firemonkey Database Tutorial
Firemonkey Mobile Tutorial
Firemonkey CodeRage
CodeRage is a free online Delphi conference. Most of their replays are
on YouTube now.
E.g.:
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Tutorial:_Connecting_to_a_SQLite_Database_from_a_Multi-Device_Application_on_Desktop_Platforms
The tutorials I see that are aimed at newbies like me are older,
using technologies that are mostly or only for Windows (like the ADO
tutorial on the old delphi.about.com site or even BDE tutorials).
Beside ADO and Access databases, I see discussion about FireDAC,
InterBase, DataSnap, Zeos, and other components, libraries, or
frameworks.
Some of the main Cross platform DB access components are
FireDAC and Devart products like LiteDAC or UniDAC.
FireDAC: Only available as an addon to Pro version.
LiteDAC: Independant vendor.
Zeos: Not sure if it works with FireMonkey. There is a good chance that
it does.
All of these components work in a very similar way. Learn one, and
you'll know how to work with the others.
Firebird/Interbase is a cross platform database, but I would recommend
you use SQLite for a local db application.
DataSnap is a server side technology, for developing server applications.
-Rael
Connect with Us