An idea is, to offer a OS abstraction layer for databases, like ODBC did on Windows. Then, particular driver could do the connection to PostgreSQL, MySQL, whatever. But I agree, that the database drivers need to be brought to nuttx first.

@Alan, is this MySQL port to nuttx somewhere available, to use it as starting point?

BR,
Michael

Am 2022-10-27 18:19, schrieb Alan C. Assis:
Hi Michael,

I think someone else told some time ago that he used a similar lib for
mysql, I think it was Ivan.

Those libs inside nuttx/libs/ are libs used by the kernel and apps,
but in this case the lib should be put inside apps/databases/postgres
for example. It should be a lib just like apps/graphics/lvgl and many
others.

BR,

Alan

On 10/27/22, michael.sch...@mdc-service.de
<michael.sch...@mdc-service.de> wrote:
Dear all,

i would like to see Nuttx support for the PostgreSQL client library
libpq(https://github.com/postgres/postgres/tree/master/src/interfaces/libpq),

and a library for SCPI(https://www.jaybee.cz/scpi-parser/api/). These
scpi parser lib could then be used for USBTMC and LXI, 2 standards to
expose lab instruments in a standardized way to software like LabView,
GNU Octave, ect.

Both projects are under BSD license, so they should be compatible from
the license side with Nuttx.

I think, as common libraries for other app, and maybe service, they
should be placed under nuttxspace/nuttx/libs in the Nuttx tree, not in
the application tree. At least the PostgreSQL client library requires
network. What would be the advice, where to place these kind of
libraries?

For the PostgreSQL client library, there are implementations for
Arudino, additional to the PC based implementations. But because the
POSIX compatibility of Nuttx, starting from the Linux version should
make more sense, or?

regards,
Michael


--
Chief engineer & consultant
MDC-Service Wittenburg GmbH
Bergstiftsgasse 11
09599 Freiberg, Germany

Office Gen. +49 3731 7832310
Fax         +49 3731 2442369

Reply via email to