cross-platform SQL DB API c/c++ [closed] - mysql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am writing a database application in C linux. Currently I work on mysql but later we might migrate to postgres. Therefore my boss has asked my to prepare the application to be able to use either of the databases(mysql or postgres).
Is there a free api which I can use for this purpose? Or any suggestion on how best I can do this?

The official answer to that is ODBC.
If you don't like that (and let's face it, no one really does), Qt has a database access module, QtSql. Obviously, this will require you to make heavy use of Qt in your application.

If you can find drivers for your platform, ODBC was supposedly meant to provide exactly this: a platform-independent way to talk to databases.
(I say supposedly because in my experience, ODBC is such a mess that hooking up to an ODBC driver once turned out to be more difficult than just writing the code three times for three different databases.)

Related

what are the differences and usages of the SQL tools, such as dataGrip, PostgreSql, pgAdmin? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 24 days ago.
Improve this question
I am starting the learning of backend. I get confused when I learn the tools such as dataGrip, PostgreSql, pgAdmin, and mySqlWorkbench. Do I need to download all of them?
Can anyone please give me some clue that what are these tools doing?
No, not at all.
postgreSQL is a database (and a very good one, you should download and use that one).
dataGrip is a paid product from jetbrains, as a tool to connect and run queries on multiple different databases.
pgAdmin is a free tool specific to postgreSQL.
mySQLWorkbench is a tool specific to mySQL.
So, in summary, assuming you chose postgreSQL as the database, you would download that one and pgAdmin. Also consider dBeaver community which is another tool that works with multiple different databases.
postgreSQL cotains a command line tool called psql, that you can use to work with postgreSQL but it is text based and you would want something easier to use. datagrip is good but paid, pgAdmin, dBeaver community edition are good choices.

Is there any separate language to query SQL Server and Oracle [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I need to know whether there exists any technology to query both SQL Server and Oracle from single application and single query language.
From my limited understanding, and I could be misunderstanding your question, the technology you would use to query both MS SQL Server and Oracle would be:
SQL
...but with different connection strings:
https://www.connectionstrings.com/oracle/
https://connectionstrings.com/sql-server/
T-SQL is the procedural language for SQL Server and Sybase; PL-SQL is Oracle's procedural language.
The two databases have relational theory and SQL in common, but they're very different.
Trying to unify two relational database products into one is a fool's errand.
If i got you correctly you want to develop an application that you can switch databases successfully without much effort. If you are developing using Java you can use Hibernate JPA. It makes it very easy to switch your Application from one database to another with minimal changes and without writing a single sql query. I hope this is what you were looking for.
Hibernate(NHibernate for dotnet) or equivalent is the only choice.

Is there any opensource ODBC library for FORTRAN? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for a Odbc library for Fortran (gFortran/Win). There was one product available by the name f90SQL but its now discontinued. I don't want write my own API wrapper for Odbc that would take alot of time is there any opensource or even a product that would provide that service.
A quick google came up with several options:
ForDBC
flibs/odbc
windtracer ODBC Intercation
I don't know if any of these are suitable, but some are open source and you should be able to adapt to your needs.
I know I'm excavating an old question but it pops up in google search.
It is only flibs/odbc that is free software among those Oded mentioned. It lacks some nice features like column binding and it generally enforces its own API. I took an effort to generate Fortran 2003 C bindings directly from ODBC headers. fodbc is far from being complete. But simple example with sqlite3 works for me so far. It looks like tests with MS Access reading and MS Excel writing do well.

Is there a mature way to interface Erlang and PostgreSQL or MySQL? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have searched the internet for drivers to connect to either database and all the projects I have seen have either been dead for a long time, look incomplete, or don't have good enough documentation to be usable without reading all the source.
Has anyone used Erlang to talk to either MySQL or PostgreSQL before and what sort of package did you use to do this?
Will Glozer wrote a nice native PostgreSQL client:
http://github.com/wg/epgsql
Yariv's mysql driver seems to be the best available: http://code.google.com/p/erlang-mysql-driver/
http://yarivsblog.com/articles/2006/09/13/erlang-mysql-driver-reloaded/
I haven't personally used it as my erlang projects mostly talk to redis, but my quick scan of the source didn't reveal anything too terrifying.
Maturity is a relative thing, especially for more esoteric languages like erlang.
Erlang pgsql - The pgsql-driver is a 100% erlang implementation of the Postgres Frontend/Backend protocol.
Plain straight ODBC ? Quite simple to set it up, but a pain to make it work..
http://github.com/inaka/sumo_db_mysql or http://github.com/inaka/sumo_db_pgsql Both of them are stable, actively maintained and used in production systems

Existing Server Storage Management Software Solutions? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am in the process of trying to graphically represent all of our server racks. So when we receive a new server we can decide where this should be put and where a specific servers currently resides.
Are there any existing software packages that stores this kind of data already? I'd prefer open source ones if there are any but anything would be helpful.
If you use nagios as monitoring application you could use NagVis to create custom status maps e.g. a rackview of your servers.
Example Screenshot
RackMonkey seems to fit your requirements too.
I had a look around at this and the solutions suggested (thanks Node) and at the moment my feeling are using one of the following:
NVentory though I'm not sure my company will want to use ruby and rails as this would be our first product using this
Rackview
Or more likely just MS Office Visio 2007 Add-in for Rack Server Virtualization however this looks like it only links to excel and hopefully I can use excel to query a database.
I will update when I have played about with these tools and see what they can provide.