📄 main.txt
字号:
/* LiteSQL - Documentation - Main Page * * By Tero Laitinen * * See LICENSE for copyright information. *//* \file main.txt Manual *//** \mainpage LiteSQL - C++ Object-Relational Persistence Framework\section intro IntroductionLiteSQL is a C++ library that integrates C++ objects tightly to relationaldatabase and thus provides an object persistence layer. LiteSQL supportsSQLite3, 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 whichcan be used to model any kind of C++ data structures. Objects can be selected,filtered and ordered using template- and class-based API with type checking at compile time. \section features Features- SQLite3, PostgreSQL and MySQL - backend support- object persistence layer with relation support- automatic database schema creation and upgrading- create complex SQL queries using compile time checked class API; minimizes need to write SQL query strings\section status Status- this a testing release- no Windows support yet\section requirements Requirements- gcc-compatible C++ compiler that supports member templates- client library and header files for at least one backend: libsqlite3, libmysqlclient or libpq\subsection optionalreqs Optional- automake 1.4 - autoconf 2.59- flexml 1.44 (to generate code generator ;)- doxygen 1.4.5- dpkg-buildpackage (to generate debian packages)\section license LicenseThis library is distributed under the terms of \ref bsdlicense\section helpneeded Help NeededAll feedback concerning the library is welcome. If you want to advance the development of the library, you may contribute by:- using the library in your projects - submitting bug reports or feature requests- implementing new a feature (ask first if somebody is already working on it)- testing if the library compiles and runs on your system- making the library compile and run on your system- writing usage examples \section support SupportSubscribe to <a class="el" href="http://lists.sourceforge.net/lists/listinfo/litesql-users">litesql-users mailing list</a> and describe your problems orideas there. \section manual Manual\subsection toc Table of Contents - \ref implementation - \ref changes - \ref contributors - \ref future - \ref usage_defining_database - \ref usage_database_create_drop - \ref usage_update_delete_persistents - \ref usage_selecting_persistents - \ref usage_using_relations - \ref usage_upcasting - \ref usage_cursor - \ref usage_using_database - \ref mysql_notes - \ref cost\subsection exlinks External Links - <a class="el" href="http://sourceforge.net/project/showfiles.php?group_id=113304">Download</a> - <a class="el" href="http://sourceforge.net/tracker/?group_id=113304&atid=664757">Bug Tracker</a> - <a class="el" href="http://sourceforge.net/forum/?group_id=113304">Forum</a> - <a class="el" href="http://sourceforge.net/projects/litesql">Project Page</a>\section quickstart Quick Start\subsection quickstart1 Step 1: Write XML-file which defines objects, fields, methods and relations in database.Simple example database definition file exampledatabase.xml:\include exampledatabase.xmlFigure of database (generated with graphviz and litesql-gen):\image html exampledatabase.png\subsection quickstart2 Step 2: Run Code Generator\codelitesql-gen exampledatabase.xml\endcodeFiles exampledatabase.cpp and exampledatabase.hpp are written.\subsection quickstart3 Step 3: Write Application Code\include example.cpp\subsection quickstart4 Step 4: Compile, Link and ExecuteWhen executed, the example program will output following:\include example_output.txtFollowing SQL queries are executed under the hood. Most of the queriesare related to creating database schema and storing it to schema-table.\include example_queries.txt<hr>By Tero Laitinen <tero.laitinen@iki.fi>*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -