Mercurial > hg > orthanc
annotate Core/SQLite/README.txt @ 2514:38d666a40860
fix msvc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Mar 2018 08:55:32 +0200 |
parents | 9b9026560a5f |
children |
rev | line source |
---|---|
17 | 1 Introduction |
2 ============ | |
3 | |
4 The code in this folder is a standalone object-oriented wrapper around | |
5 SQLite3. It is derived from the code of Chromium: | |
0 | 6 |
7 http://src.chromium.org/viewvc/chrome/trunk/src/sql/ | |
8 http://maxradi.us/documents/sqlite/ | |
9 | |
10 | |
17 | 11 Main differences with Chromium |
12 ============================== | |
13 | |
14 * The reference counting mechanism has been reimplemented to make it | |
15 simpler. | |
59 | 16 * The OrthancException class is used for the exception mechanisms. |
17 | 17 * A statement is always valid (is_valid() always return true). |
59 | 18 * The classes and the methods have been renamed to meet Orthanc's |
17 | 19 coding conventions. |
20 | |
21 | |
1220
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
22 Reuse in another software |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
23 ========================= |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
24 |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
25 To use the Orthanc SQLite wrapper in another project than Orthanc, you |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
26 just have to define the "ORTHANC_SQLITE_STANDALONE" macro. |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
27 |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
28 All the C++ exceptions generated by the wrapper will be objects of the |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
29 class "::Orthanc::SQLite::OrthancSQLiteException", that derives from |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
30 the standard exception class "::std::runtime_error". |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
31 |
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
32 |
17 | 33 Licensing |
34 ========= | |
35 | |
36 The code in this folder is licensed under the 3-clause BSD license, in | |
37 order to respect the original license of the code. | |
38 | |
39 It is pretty straightforward to extract the code from this folder and | |
1220
9b9026560a5f
SQLite wrapper is now fully independent of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
40 to include it in another project. |