ethiraric / mysql_orm Goto Github PK
View Code? Open in Web Editor NEWA C++ ORM for MySQL
License: MIT License
A C++ ORM for MySQL
License: MIT License
This project looks promising and could prove to be an easy migration from sqlote_orm.
I'm wondering if you plan on updating the project any time soon? Unique constraints would be one feature I'm particularly interested in.
I'm unable to successfully compile this project. I'm using Ubuntu 22.04 with g++ 13.1. I really want to use this project and hope you can help me. Below is the process I've tried to resolve the errors.
First, there is this error. I found the value corresponding to SIGSTKSZ and directly replaced it, which I consider as solving this error.
/home/yyx/mysql_orm/tests/catch.hpp:7441:45: error: size of array ‘altStackMem’ is not an integral constant-expression
7441 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
Then there is this error. I don't understand why you are using <> to include your own project's header files, so I
$ ln -s ../include/mysql_orm/ ./tests/
$ ln -s ../deps/include/ ./tests/
/home/yyx/mysql_orm/tests/test_Column.cpp:1:10: fatal error: mysql_orm/Column.hpp: No such file or directory
1 | #include <mysql_orm/Column.hpp>
This is the third error. I searched the entire project and found no definition for my_bool, so I had to replace all instances with bool.
/home/yyx/mysql_orm/tests/./mysql_orm/Connection.hpp:36:22: error: ‘my_bool’ was not declared in this scope; did you mean ‘bool’?
36 | auto reconnect = my_bool{1};
This is the fourth error, I really have no idea how to solve it.
$ make
Consolidate compiler generated dependencies of target mysql_orm_tests
[ 6%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Database.cpp.o
[ 13%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Delete.cpp.o
[ 20%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Insert.cpp.o
[ 26%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Limit.cpp.o
[ 33%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Pack.cpp.o
[ 40%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_RemoveOccurences.cpp.o
[ 46%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_GetAll.cpp.o
[ 53%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Table.cpp.o
[ 60%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Update.cpp.o
[ 66%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Varchar.cpp.o
[ 73%] Building CXX object CMakeFiles/mysql_orm_tests.dir/test_Where.cpp.o
[ 80%] Linking CXX executable mysql_orm_tests
/usr/bin/ld: cannot find -lmysql_orm: No such file or directory
collect2: error: ld returned 1 exit status
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.