1 | /****************************************************************************
|
---|
2 | ** $Id: qsql.cpp 2051 2007-02-21 10:04:20Z chehrlic $
|
---|
3 | **
|
---|
4 | ** Implementation of QSql class
|
---|
5 | **
|
---|
6 | ** Created : 2000-11-03
|
---|
7 | **
|
---|
8 | ** Copyright (C) 2000-2007 Trolltech ASA. All rights reserved.
|
---|
9 | **
|
---|
10 | ** This file is part of the sql module of the Qt GUI Toolkit.
|
---|
11 | **
|
---|
12 | ** This file may be distributed under the terms of the Q Public License
|
---|
13 | ** as defined by Trolltech ASA of Norway and appearing in the file
|
---|
14 | ** LICENSE.QPL included in the packaging of this file.
|
---|
15 | **
|
---|
16 | ** This file may be distributed and/or modified under the terms of the
|
---|
17 | ** GNU General Public License version 2 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
19 | ** packaging of this file.
|
---|
20 | **
|
---|
21 | ** Licensees holding valid Qt Enterprise Edition licenses may use this
|
---|
22 | ** file in accordance with the Qt Commercial License Agreement provided
|
---|
23 | ** with the Software.
|
---|
24 | **
|
---|
25 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
---|
26 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
27 | **
|
---|
28 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
---|
29 | ** information about Qt Commercial License Agreements.
|
---|
30 | ** See http://www.trolltech.com/qpl/ for QPL licensing information.
|
---|
31 | ** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
---|
32 | **
|
---|
33 | ** Contact info@trolltech.com if any conditions of this licensing are
|
---|
34 | ** not clear to you.
|
---|
35 | **
|
---|
36 | **********************************************************************/
|
---|
37 |
|
---|
38 |
|
---|
39 | /*!
|
---|
40 | \class QSql qsql.h
|
---|
41 | \brief The QSql class is a namespace for Qt SQL identifiers that
|
---|
42 | need to be global-like.
|
---|
43 |
|
---|
44 | \ingroup database
|
---|
45 | \mainclass
|
---|
46 | \module sql
|
---|
47 |
|
---|
48 | Normally, you can ignore this class. Several Qt SQL classes
|
---|
49 | inherit it, so all the identifiers in the Qt SQL namespace are
|
---|
50 | visible without qualification.
|
---|
51 | */
|
---|
52 |
|
---|
53 | /*!
|
---|
54 | \enum QSql::Confirm
|
---|
55 |
|
---|
56 | This enum type describes edit confirmations.
|
---|
57 |
|
---|
58 | \value Yes
|
---|
59 | \value No
|
---|
60 | \value Cancel
|
---|
61 | */
|
---|
62 |
|
---|
63 | /*!
|
---|
64 | \enum QSql::Op
|
---|
65 |
|
---|
66 | This enum type describes edit operations.
|
---|
67 |
|
---|
68 | \value None
|
---|
69 | \value Insert
|
---|
70 | \value Update
|
---|
71 | \value Delete
|
---|
72 | */
|
---|
73 |
|
---|
74 |
|
---|
75 | /*!
|
---|
76 | \enum QSql::Location
|
---|
77 |
|
---|
78 | This enum type describes SQL navigation locations.
|
---|
79 |
|
---|
80 | \value BeforeFirst
|
---|
81 | \value AfterLast
|
---|
82 | */
|
---|
83 |
|
---|
84 | /*!
|
---|
85 | \enum QSql::ParameterType
|
---|
86 |
|
---|
87 | This enum is used to set the type of a bind parameter
|
---|
88 |
|
---|
89 | \value In the bind parameter is used to put data into the database
|
---|
90 | \value Out the bind parameter is used to receive data from the database
|
---|
91 | \value InOut the bind parameter is used to put data into the
|
---|
92 | database; it will be overwritten with output data on executing
|
---|
93 | a query.
|
---|
94 | */
|
---|
95 |
|
---|
96 | /*!
|
---|
97 | \enum QSql::TableType
|
---|
98 |
|
---|
99 | This enum type describes types of tables
|
---|
100 |
|
---|
101 | \value Tables All the tables visible to the user
|
---|
102 | \value SystemTables Internal tables used by the DBMS
|
---|
103 | \value Views All the views visible to the user
|
---|
104 | \value AllTables All of the above
|
---|
105 | */
|
---|
106 |
|
---|
107 | /*!
|
---|
108 | \fn QSql::QSql()
|
---|
109 |
|
---|
110 | Constructs a Qt SQL namespace class
|
---|
111 | */
|
---|