You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Anthony <ha...@gmail.com> on 2020/04/06 23:08:20 UTC

C++ ODBC Example Question

Hello,

For the following example, instead of storing the "Person" using ODBC, is
it possible to build the "Person" in c++  and store to in the server?

I still want to use ODBC to retrieve the data.

https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp


Thanks,

Anthony

Re: C++ ODBC Example Question

Posted by Igor Sapego <is...@apache.org>.
Yes, you can. You just need to combine C++ PutGet example and ODBC example,
where from C++ you take a part that puts data in cache, and from ODBC you
take
the querying part.

Best Regards,
Igor


On Wed, Apr 8, 2020 at 6:32 PM Anthony <ha...@gmail.com> wrote:

> Hello llya,
>
> I guess I may not describe my question more clearly. In the example you
> gave me,
> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp,
> Can I retrieve the data from the cache using ODBC?
>
> Regards,
>
> Anthony
>
> On Tue, Apr 7, 2020 at 4:11 AM Ilya Kasnacheev <il...@gmail.com>
> wrote:
>
>> Hello!
>>
>> Please take a look at this example, it will store Organization from C++:
>>
>> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp
>>
>> Some additional configuration will be needed to access data using SQL:
>> https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability
>>
>> https://www.gridgain.com/docs/latest/developers-guide/SQL/sql-key-value-storage
>>
>> Regards,
>> --
>> Ilya Kasnacheev
>>
>>
>> вт, 7 апр. 2020 г. в 02:08, Anthony <ha...@gmail.com>:
>>
>>> Hello,
>>>
>>> For the following example, instead of storing the "Person" using ODBC,
>>> is it possible to build the "Person" in c++  and store to in the server?
>>>
>>> I still want to use ODBC to retrieve the data.
>>>
>>>
>>> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
>>>
>>>
>>> Thanks,
>>>
>>> Anthony
>>>
>>

Re: C++ ODBC Example Question

Posted by Anthony <ha...@gmail.com>.
Hello llya,

I guess I may not describe my question more clearly. In the example you
gave me,
https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp,
Can I retrieve the data from the cache using ODBC?

Regards,

Anthony

On Tue, Apr 7, 2020 at 4:11 AM Ilya Kasnacheev <il...@gmail.com>
wrote:

> Hello!
>
> Please take a look at this example, it will store Organization from C++:
>
> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp
>
> Some additional configuration will be needed to access data using SQL:
> https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability
>
> https://www.gridgain.com/docs/latest/developers-guide/SQL/sql-key-value-storage
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> вт, 7 апр. 2020 г. в 02:08, Anthony <ha...@gmail.com>:
>
>> Hello,
>>
>> For the following example, instead of storing the "Person" using ODBC, is
>> it possible to build the "Person" in c++  and store to in the server?
>>
>> I still want to use ODBC to retrieve the data.
>>
>>
>> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
>>
>>
>> Thanks,
>>
>> Anthony
>>
>

Re: C++ ODBC Example Question

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Please take a look at this example, it will store Organization from C++:
https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/put-get-example/src/put_get_example.cpp

Some additional configuration will be needed to access data using SQL:
https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability
https://www.gridgain.com/docs/latest/developers-guide/SQL/sql-key-value-storage

Regards,
-- 
Ilya Kasnacheev


вт, 7 апр. 2020 г. в 02:08, Anthony <ha...@gmail.com>:

> Hello,
>
> For the following example, instead of storing the "Person" using ODBC, is
> it possible to build the "Person" in c++  and store to in the server?
>
> I still want to use ODBC to retrieve the data.
>
>
> https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/cpp/examples/odbc-example/src/odbc_example.cpp
>
>
> Thanks,
>
> Anthony
>