LiteSQL - C++ Object-Relational Persistence Framework

LiteSQL是一个C++库,紧密整合到关系数据库中,提供对象持久层。支持SQLite3、PostgreSQL和MySQL作为后端,能够创建表格、索引和序列,并在需要时升级方案。除了对象持久性,它还提供了对象关系,用于模型基本OO构建块(聚合、组合、关联)。对象可以使用模板和类为基础的API进行选择、过滤和排序,带有编译时类型检查。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

LiteSQL - C++ Object-Relational Persistence Framework

LiteSQL is a C++ library that integrates C++ objects tightly to relational database and thus provides an object persistence layer. LiteSQL supports SQLite3, PostgreSQL and MySQL as backends. LiteSQL creates tables, indexes and sequences to database and upgrades schema when needed. In addition to object persistence, LiteSQL provides object relations which can be used to model basic OO building blocks (aggregation, composition, association). Objects can be selected, filtered and ordered using template- and class-based API with type checking at compile time.

Features

  • SQLite3, PostgreSQL, MySQL and Oracle-backend support
  • C++ object persistence (store, update, retrieve)
  • relational operations (filtering, ordering, referencing other objects)
  • automatic database structure maintenance (creates, updates and drops tables/indices behind the scenes)
  • C++ template based database API -> no SQL queries by hand

License

This library is distributed under the terms of BSD-License

Status

0.3.x version is a proof-of-concept implementation, works for non-critical use

Download

Please continue to the Download page.

Mailing List

Discussion about the library (help requests, new ideas, etc.) is very welcome at litesql-users mailing list

Contributions Welcome

There is a lot of interesting tasks available (the list of active tickets).Please acknowledge the license of the project before contributing. Only contributions that can be released under the license will be included.

Documentation


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值