473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

SQL oriented scripting language that can be executed from a C++ code

Hi.
I have to write a C++ code that invokes a set of SQL statements
(inserts, updates, selects etc.),
according to the system administrator's directives.

The directives should be written as a simple script.

In addition to the SQL statements invocation,
the script should enable using query results as an input to other SQL statements,
and should be able to handle multiple query results.
The script writer should be able to access informaion from the C++ program.

Do you have any recommendation for a suitable scripting language,
that is well integrated with C++?
(I used to work with Java-->Jython and Iv'e been thinking of something similar,
but for C++, and more SQL oriented).
Thanks.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Jul 22 '05 #1
3 1511
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Part of every standard DBMS installation is something called an embedded
compiler (really, an embedded precompiler). This takes your C or C++
code & compiles it with the appropriate vendor's C library calls based
on the simplified SQL scripts you embedded in your code. For an example
of this, have a look at PostgreSQL's embedded compiler.

Evan

Michal O wrote:
Hi.
I have to write a C++ code that invokes a set of SQL statements
(inserts, updates, selects etc.),
according to the system administrator's directives.

The directives should be written as a simple script.

In addition to the SQL statements invocation,
the script should enable using query results as an input to other SQL statements,
and should be able to handle multiple query results.
The script writer should be able to access informaion from the C++ program.

Do you have any recommendation for a suitable scripting language,
that is well integrated with C++?
(I used to work with Java-->Jython and Iv'e been thinking of something similar,
but for C++, and more SQL oriented).
Thanks.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBUiKpoo/Prlj9GScRAhqQAJ4qPkai/MrzDlqcsvxWtDRRbX6jcwCfeHJa
lIIKbWJHsM+K94eUNpxbPd8=
=qCBx
-----END PGP SIGNATURE-----
Jul 22 '05 #2
Hi.
I have to write a C++ code that invokes a set of SQL statements
(inserts, updates, selects etc.),
according to the system administrator's directives.

The directives should be written as a simple script.

In addition to the SQL statements invocation,
the script should enable using query results as an input to other SQL
statements,
and should be able to handle multiple query results.
The script writer should be able to access informaion from the C++
program.

Do you have any recommendation for a suitable scripting language,
that is well integrated with C++?
(I used to work with Java-->Jython and Iv'e been thinking of something
similar,
but for C++, and more SQL oriented).
Thanks.


I don't now if this helps, but if you use MySql as the database, it has a
C++ API.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Jul 22 '05 #3
I think you should provide more details. Do you want to implement a client
SQL interpreter? Various DBMS systems provide several interfaces, from ODBC
to low level API or the dreaded OLE DB. There are also a bunch of client
libraries C++ that wrap ODBC or driver specific API in a more unified way.
One of them is source pro db from roguewave
http://www.roguewave.com/products/sourcepro/db/ and another one, cheaper,
is sql api: http://www.sqlapi.com/

On the other hand several DBMS systems provide a SQL language that you can
use to write scripts to do whatever you want: Oracle has PL/SQL, SQL Server
has Transact-SQL etc.

Costa

"Michal O" <mi*****@gmail.com> wrote in message
news:46*************************@posting.google.co m...
Hi.
I have to write a C++ code that invokes a set of SQL statements
(inserts, updates, selects etc.),
according to the system administrator's directives.

The directives should be written as a simple script.

In addition to the SQL statements invocation,
the script should enable using query results as an input to other SQL statements, and should be able to handle multiple query results.
The script writer should be able to access informaion from the C++ program.
Do you have any recommendation for a suitable scripting language,
that is well integrated with C++?
(I used to work with Java-->Jython and Iv'e been thinking of something similar, but for C++, and more SQL oriented).

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Ville Vainio | last post by:
Pythonic Nirvana - towards a true Object Oriented Environment ============================================================= IPython (by Francois Pinard) recently (next release - changes are...
14
by: mirnazim | last post by:
Hi, There are great Python Web Application Framework. But most of them are meant for content oriented web apps. Is there something that can ease the development of application that are not...
0
by: Michal O | last post by:
Hi. I have to write a C++ code that invokes a set of SQL statements (inserts, updates, selects etc.), according to the system administrator's directives. The directives should be written as a...
4
by: scottrm | last post by:
I am fairly new to oo design and I am looking at developing an object oriented asp.net application which will be built on top of a relational database. I have read quite a bit of the theory but...
12
by: Tony Belding | last post by:
I'm interested in using an off-the-shelf interpreted language as a user-accessible scripting language for a MUCK. I'm just not sure if I can find one that does everything I need. The MUCK must be...
5
by: KimmoA | last post by:
Does C have a future? I'd like to think so, but nobody seems to agree with me. Of course, I don't use C in my profession, and maybe I wouldn't be using it if I had the pressure to actually produce...
6
by: avh | last post by:
Hi, I'have been looking for a simple scripting (interpreted) language to be run within my ASP.NET pages.Syntax is of minor importance. Although I find many options, all of these seem to first...
2
by: JosAH | last post by:
Greetings, Introduction Java is not Javascript and most of the times when questions end up in the wrong forum, they're moved to the other forum as soon as possible. Accidentally this article...
139
by: Joe Mayo | last post by:
I think I become more and more alone... Everybody tells me that C++ is better, because once a project becomes very large, I should be happy that it has been written in C++ and not C. I'm the only...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.