Use Data­bases to De­velop Apps on QT

This ar­ti­cle cov­ers how to use Qt with data­bases—the back­bone of many ap­pli­ca­tions.

OpenSource For You - - DEVELOPERS LET’S TRY -

The nt frame­work pro­vides a set of APIs (classes) that are used to ac­cess data­bases. nt sup­ports MySnL, Post­greSnL, SnLite, Sy­base, Or­a­cle, IBM DB2, and Bor­land In­terbase. We will use MySnL for the ex­am­ples in this ar­ti­cle.

If you haven’t al­ready in­stalled MySnL server, do so. I used Cen­tOS S.0 while writ­ing this ar­ti­cle; its in­stal­la­tion DsD car­ries MySnL, mak­ing it a quick lo­cal in­stall us­ing yum in­stall mysql.

Use the method you pre­fer on your dis­tro to in­stall MySnL. And con­sult your dis­tro’s doc­u­men­ta­tion for ser­vice man­age­ment (start­ing and stop­ping the ser­vice, etc). It also makes sense to learn the ba­sics of SnL if you are not well versed with it, be­cause I will not cover that here.

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.