C++ mongocxx driver stored javascript issue - c++

I have created some stored procedures(stored javascript) in my mongodb database. Now i need to call this from a c++ program. I just installed mongocxx driver. is there any api available for calling stored javascvript from c++??

The only features of MongoDB that use server-side stored javascript are described in the manual page Server-side Javascript.
There is no C++ driver API to call such functions.

Related

Using Neo4j Java API with Python Flask application - how?

I have a Flask application that uses Neo4j and is written in Python. Now, I need to use Neo4j's Java API for traversal and other purposes. What would be a starting point to make this work?
Thanks.
You won't be able to do this from Python. The traversal API and core API are Java-only, and must execute on the machine where Neo4j is running.
This means you either have to be using an embedded Neo4j deployment (which you aren't), or you need to create a custom procedure/function/kernel extension in Java that will use those APIs and be callable in Cypher queries that you make remotely via the Python Neo4j driver.

Website using Python Oracle and Javascript

I have a HTA tool that connects to oracle database. It's created using HTML,Javascript and oracle as backend.
Javascript connects to oracle database using OLEDB drive. It pulls data and create dynamic rows.
Tool is working but now am planning to convert it as Web Application.
Being a DBA , am not that much familiar with Java and i thought i will explore options in Python.
I have recently done a automation using Python and Selenium. So yes , i know bit of Python. But i have no idea about website using python.
I also don't want to change lot of code. I want javascript to do all the dynamic front-end stuffs.
All i need is interface that can connect to oracle database and pull the information and pass it to javascript function.
Can someone please guide to how to start with.
Thanks.
I don't know Python but if you don't want to change a lot of code, you may consider PHP. It's made to generate HTML code dynamicaly.
It is dangerous to connect to your DB directly by using javascript. Every user can read the JS code in the page and event modify it(sending every value they want).
PHP is executed on the server, it mean that you can check and validate the received value before risking to corupt your DB.
That's why a PHP page between the JS and the DB is better. Python should be secure too but I think it's easier to use PHP because it's open source and well documented.
I wish you a good continuation!

Calling Microsoft Graph from Google Appengine Python

I need to call the Microsoft Graph from a Google Appengine Python application, this requires oAuth2 authentication.
Google provide the Google API Client Libraries for calling their own REST api's (such as Calendar / Drive / Youtube etc) - is it possible to use the library to call other non Google REST API's such as Microsoft Graph?
If not has anyone used another library to do so from Appengine Python. You can not use the Microsoft supplied python SDK as this requires python version 3+ and Appengine only supports 2.7.
Thanks in advance,
Ian
The authorization token you receive from Google will only work with their APIs. You'll need a separate token for use with Graph. For this you can use ADAL library.
Since you need to stick with 2.7, you'll need issue REST directly. The existing SDK (as you noted) requires py3. You may want to take a look at restclient for this. Its been a while since I've had to use this lib but I recall it really simplified calling REST endpoints.

creating an interface using C++ for an oracle database

My question is if it is possible to create an interface using C++ (for windows) for accessing and inserting data into an Oracle database created with Oracle Database Express Edition. Somebody recommended me to use Java instead because "it is much simpler", or even .NET C#. But I know very little about Java. So, I would like to use C++ and some Windows API.
I read this: Creating a simple user interface to access an Oracle database but I have to mention that for this project I'm not allowed to use APEX from Oracle. It must be an web application.
Thank you very much in advance.

Using box.net, dropbox, (OR ANY cloud storage) with a C++ application

How do you use cloud storage such as Dropbox in your C++ Apllication ? I've checked out their API and they only have Java, Python, and Ruby options. If you cant use dropbox with a c++ app, is therte any cloud storage provider that has an API for C++.
The drop box APIs seem to be wrappers for a http interface.
So if you want to hit them up from C++ you can use a http supporting library like libcurl to access stuff using the REST api
Droper is an open source C++/Qt Dropbox client that I have recently wrote. It can be compiled for Windows and Linux, but the GUI is optimized for Symbian mobile phones. Check it out.
I've found several differnet APIs on their website, righ under the place you propably found the ruby / pathon stuff..
http://sharpbox.codeplex.com/
http://github.com/dkarzon/DropNet
Not sure if this is, wha you were looking for..