{"repo":"crabmandable/zxorm","free":true,"listed":false,"github":"https://github.com/crabmandable/zxorm","clone":"git clone https://github.com/crabmandable/zxorm.git","description":"Zach's ORM - A C++20 ORM for SQLite","language":"C++","stars":43,"topics":["header-only","metaprogramming","orm","sql","sqlite"],"license":"MPL-2.0","category":"databases-storage","readme_excerpt":"ZxORM Z ach's O object R elational M apping library - A C++20 ORM for SQLite zxorm is an attempt to create an ORM for C++ that achieves the following: Compile time type safety No code generation Low amount of boilerplate code No requirement to inherit from anything or conform to a prescribed interface SQL like syntax for writing more complicated queries without writing raw SQL Make it impossible to construct an invalid query Getting started 1. Write your objects zxorm doesn't provide a base class or anything like that. The types for the SQL table are instead inferred from types used in the C++ code. 2. Create a Table for your object This is the mapping that will tell zxorm how to deal with Object and what table in the database it is referring to. 3. Create a connection The connection template accepts a list of tables, and should contain all the tables that your application is going to work with. 4. Start running queries Check out the example for more Building The library is header only, so all you need to do is include the includes directory, and link sqlite There is also a CMakeLists.txt that can be used for integrating easily into a CMake project. So you can do one of the following: or or Currently gcc 15 and clang 15 are tested and working on linux, and AppleClang 14 on MacOs I don't have a Windows machine, and won't be adding support any time soon. Usage Select queries For more complicated queries, the connection class has the select query . This function returns a query ","default_branch":null,"files":null,"tree":[],"storefront":"/r/crabmandable","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/crabmandable/zxorm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}