diff --git a/index.html b/index.html index b53d70e..b526086 100644 --- a/index.html +++ b/index.html @@ -31,24 +31,29 @@
-

License

+

About SQLite:

-

Copyright (c) 2012-2013 Sébastien Rombauts (sebastien.rombauts@gmail.com)

+

SQLite is a library that implements a serverless transactional SQL database engine. +It is the most widely deployed SQL database engine in the world. +The source code for SQLite is in the public domain. +http://www.sqlite.org/about.html

-

Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt -or copy at http://opensource.org/licenses/MIT)

+

About SQLiteC++:

+ +

SQLiteC++ offers an encapsulation arround the native C APIs of sqlite, +with a few intuitive and well documented C++ class.

The goals of SQLiteC++ are:

It is designed using the Resource Acquisition Is Initialization (RAII) idom @@ -58,20 +63,38 @@ where assert() are used instead). Each SQLiteC++ object must be constructed with a valid SQLite database connection, and then is always valid until destroyed.

-

Depandancies:

+

 Suported platforms:

+ +

Developements and tests are done under the following OSs :

To use it in your project, you only need to add the 6 SQLiteC++ source files -in your project code base (not the main.cpp example file).

+
  • Debian 7 (testing)
  • +
  • Ubuntu 12.04
  • +
  • Windows XP/7/8 +And following IDEs/Compilers
  • +
  • GCC 4.7.x with a provided Makefile
  • +
  • Eclipse CDT under Linux, using the provided Makefile
  • +
  • Visual Studio Express 2008/2010/2012 for testing compatibility purpose
  • +

    Dependencies:

    -

    About SQLite:

    +

    Installation:

    -

    SQLite is a library that implements a serverless transactional SQL database engine. -http://www.sqlite.org/about.html

    +

    To use this wrappers, you need to add the 10 SQLiteC++ source files from the src/ directory +in your project code base, and compile/link against the sqlite library.

    + +

    License

    + +

    Copyright (c) 2012-2013 Sébastien Rombauts (sebastien.rombauts@gmail.com)

    + +

    Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +or copy at http://opensource.org/licenses/MIT)

    + +

    Getting started

    First sample demonstrates how to query a database and get results:

    @@ -94,7 +117,7 @@ in your project code base (not the main.cpp example file).

    const char* value = query.getColumn(1); int size = query.getColumn(2); - std::cout << "row: " << id << "," << value << "," << size << std::endl; + std::cout << "row: " << id << ", " << value << ", " << size << std::endl; } } catch (std::exception& e) @@ -107,8 +130,7 @@ in your project code base (not the main.cpp example file).

    try
     {
    -    SQLite::Database db("transaction.db3", SQLITE_OPEN_READWRITE|
    -                                           SQLITE_OPEN_CREATE);
    +    SQLite::Database    db("transaction.db3", SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE);
     
         db.exec("DROP TABLE IF EXISTS test");
     
    @@ -118,7 +140,7 @@ in your project code base (not the main.cpp example file).

    db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY, value TEXT)"); int nb = db.exec("INSERT INTO test VALUES (NULL, \"test\")"); - std::cout << "INSERT INTO test returned " << nb << std::endl; + std::cout << "INSERT INTO test VALUES (NULL, \"test\")\", returned " << nb << std::endl; // Commit transaction transaction.commit(); @@ -129,7 +151,35 @@ in your project code base (not the main.cpp example file).

    }
    -

    Some other simple C++ SQLite wrappers:

    +

    How to contribute

    + +

    GitHub website

    + +

    The most efficient way to help and contribute to this wrapper project is to +use the tools provided by GitHub:

    + +

    Contact

    + +

    You can also email me directly, I will answer any questions and requests.

    + +

    Coding Style Guidelines

    + +

    The source code use the CamelCase naming style variant where :

    + +

    See also - Some other simple C++ SQLite wrappers:

    + +

    See also the file WRAPPERS.md offering a more complete comparison of other wrappers.