Questions tagged [odb]

ODB is an open-source, cross-platform, and cross-database object-relational mapping (ORM) system for C++.

ODB is an open-source, cross-platform, and cross-database object-relational mapping (ORM) system for C++. It allows you to persist C++ objects to a relational database without having to deal with tables, columns, or SQL and without manually writing any mapping code. ODB supports MySQL, SQLite, PostgreSQL, Oracle, and Microsoft SQL Server relational databases as well as C++98/03 and C++11 language standards. It also comes with optional profiles for Boost and Qt which allow you to seamlessly use value types, containers, and smart pointers from these libraries in your persistent C++ classes.

82 questions
1
vote
0 answers

Setting up odb in codeblocks

How would I setup odb in codeblocks??... There isn't a guide for the codeblocks ide on the odb website. I've tried using the guide for eclipse but I've been unable to set it up properly.
Michael
  • 713
  • 10
  • 27
1
vote
0 answers

Error while setting up odb with qt

I'm currently using Mac OS X 10.9.4, odb 2.3.0 and qt 5.3. I installed odb using their unix guide http://wiki.codesynthesis.com/Using_ODB_with_Qt_Creator_on_Linux I tried to compile the examples(odb-examples-2.3.0) from their site with qt and…
Durrahan
  • 45
  • 5
1
vote
1 answer

Need to construct object back from db tables using ODB orm tool

I need to use ODB to make the C++ objects persistent. I know with ODB we can generate the .sql file ad then map it into respective database; however can we do the reverse thing using ODB ? as in constructing the objects back from db tables ? Any…
1
vote
0 answers

OpenCV persist with ODB

Hello I'm trying to persist a class in c++ using ODB. However when I compile the .h using the odb compiler, it crashes showing the following error: error: unable to map C++ type '::cv::Mat' used in data member 'data' to a MySQL database…
LizyCV
  • 23
  • 1
  • 4
1
vote
1 answer

C++ ODB Support Different DBMS

I have been looking at ODB ORM for some time now and had some practice with it. My problem is switching between different DBMS recompiling the code. From my Java background, I can simply change a config file and the ORM works e.g Hibernate. This far…
mike
  • 23
  • 2
0
votes
1 answer

Why is the Identifier not valid? The column is in the corr synt. on the sour datab with the corr nam, Power Query Editor tool, Extended Editor tool

// Join data and fill in the monthly columns JoinedTable = Table.Join(ChangedTypes, {"CustomerNo"}, FilteredRows, {"Customer No_"}), FilledColumns = Table.TransformColumns(JoinedTable, { {"January", each if [Month] = 1 then…
0
votes
0 answers

Reading data from ODB while Abaqus calculation is running

I have a problem with a free-fall object. I have to extract the coordinates of the position (x,y,z) of the center of mass while the calculation is being solved. Is it possible to extract the x,y,z coordinate point data from the ODB while the…
0
votes
1 answer

Initialize an oracle table of records in EF core

as the title says. here is the procedure in the package with the types: create or replace PACKAGE Pkg_Punt_Tijd AS TYPE recTijd IS RECORD ( TijdVan DATE, TijdTot DATE, Prioriteit NUMBER(1)…
0
votes
1 answer

ABAQUS script for a custom field output

I am new to ABAQUS scripting and I am trying to calculate micromotion using COPEN, CSLIP1 and CSLIP2. I came up with the code below: from abaqusConstants import * from odbAccess import * from odbMaterial import * from odbSection import * from math…
0
votes
1 answer

Is there an easy way to implement C++ queries like the ones from ODB?

I am working with filters in C++ and I would like to create a query like ODB does: db->query (query::age > 30) I don't know what kind of data is being passed there. I have been reading about filters in C++ (with functors, lambda expressions, ...)…
0
votes
1 answer

How can I extract the maximum Von Mises stress in Abaqus on my entire assembly using python?

I've seen several examples on the internet of how to get the highest Von Mises stress from an instance. However, in my simulation there are 4 geometries (ie 4 instances) and my code is only evaluating the Von Mises stress in a single instance…
0
votes
1 answer

Bidirectional link odb failed

I have two classes with bidirectional link but the generation of odb files failed with this command : odb --database mysql --generate-query --generate-schema --std c++14 -I./data-bdd/src/model *.hxx I have this error (with MySQL and SQLite…
0
votes
1 answer

showing only one column in each row, Sqlplus

I am trying to display tables in Oracle properly, but it only shows one column each row. SQL> select * from Manager; FAMILYNAME -------------------------------------------------- PERSONALNAME -------------------------------------------------- …
0
votes
1 answer

Max stress from ODB

I'm new in programming and I need to write a code that create an odb that visualize max value of six field output of a single step. For every single node I would like represent the max value of each field output. Now I've created a code which…
0
votes
0 answers

OpenOffice access a table from an odb (HSQLDB) file

I got an external Access database imported with OpenOffice and saved by OpenOffice as .odb file. However I can't access the data from my OpenOffice Calc table fields: ='filename.odb'#tablename.A0 does not import anything. Is there a special trick…
areop-enap
  • 396
  • 1
  • 7