Skip to content

marcosgambeta/sqlrddpp

Repository files navigation

SQLRDD++

SQLRDD for Harbour++ and Harbour

Building

Windows - How to compile

cd sqlrddpp
hbmk2 sqlrddpp.hbp

Ubuntu - How to get and compile

sudo apt install unixodbc-dev
git clone https://github.com/marcosgambeta/sqlrddpp
cd sqlrddpp
hbmk2 sqlrddpp.hbp

OpenSuse - How to get and compile

sudo zypper install unixODBC-devel
git clone https://github.com/marcosgambeta/sqlrddpp
cd sqlrddpp
hbmk2 sqlrddpp.hbp

Notes

SQLRDD++ do not require xhb.hbc (contrib/xhb) to compile the library.

After compiled, the library is automatically installed in the addons folder.

To disable this behaviour, edit the file sqlrddpp.hbp and disable the line below:

$hb_pkg_install.hbm

Using

Compiling with SQLRDD and MySQL

hbmk2 <filename> sqlrddpp.hbc -llibmysql

Compiling with SQLRDD and PostgreSQL

hbmk2 <filename> sqlrddpp.hbc -llibpq

Compiling with SQLRDD and Firebird

hbmk2 <filename> sqlrddpp.hbc -lfbclient

Notes

SQLRDD++ do not require xhb.hbc (contrib/xhb) to use the library.

Links

SQLRDD for xHarbour and Harbour
https://github.com/xHarbour-org/xharbour
https://github.com/xHarbour-org/xharbour/tree/main/xHarbourBuilder/xHarbour-SQLRDD

Bison
https://gnuwin32.sourceforge.net/packages/bison.htm

MySQL
https://www.mysql.com

MariaDB
https://mariadb.org

PostgreSQL
https://www.postgresql.org

Firebird
https://firebirdsql.org

Harbour++
https://github.com/marcosgambeta/harbourpp-v1

SQLRDD++ v2
https://github.com/marcosgambeta/sqlrddpp-v2
C++ version for Harbour++