⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usage_using_database.txt

📁 LiteSQL is a C++ library that integrates C++ objects tightly to relational database and thus provide
💻 TXT
字号:
/* LiteSQL - Documentation *  * By Tero Laitinen  *  * See LICENSE for copyright information. *//* \file documentation.txt    Manual *//** \page usage_using_database Database API: raw queriesIf you prefer to access database using raw queries, use plainDatabase-class and query-method. escapeSQL-function can be used to escape illegal characters such as '.NULL is a special word and it has to be escaped by the user.'NULL' maps to NULL and ''NULL'' to 'NULL' etc.Use Database::groupInsert - if you want to create rows with new integeras the first field.A query example:\codeDatabase db("sqlite3", "database=test.db");db.query("CREATE TABLE custom(value INTEGER);");db.query("INSERT INTO custom VALUES (1)");Records recs = db.query("SELECT * from custom");for (Records::iterator i = recs.begin(); i != recs.end(); i++)    cout << (*i)[0] << endl;\endcode */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -