Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qv4sqlerrors.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant
4
5
#
include
"qv4sqlerrors_p.h"
6
#
include
"private/qv4engine_p.h"
7
#
include
"private/qv4object_p.h"
8
9
QT_BEGIN_NAMESPACE
10
11
using
namespace
QV4;
12
13
void
qt_add_sqlexceptions
(
QV4
::ExecutionEngine *engine)
14
{
15
Scope scope(engine);
16
ScopedObject sqlexception(scope, engine->newObject());
17
sqlexception->defineReadonlyProperty(QStringLiteral(
"UNKNOWN_ERR"
), Value::fromInt32(
SQLEXCEPTION_UNKNOWN_ERR
));
18
sqlexception->defineReadonlyProperty(QStringLiteral(
"DATABASE_ERR"
), Value::fromInt32(
SQLEXCEPTION_DATABASE_ERR
));
19
sqlexception->defineReadonlyProperty(QStringLiteral(
"VERSION_ERR"
), Value::fromInt32(
SQLEXCEPTION_VERSION_ERR
));
20
sqlexception->defineReadonlyProperty(QStringLiteral(
"TOO_LARGE_ERR"
), Value::fromInt32(
SQLEXCEPTION_TOO_LARGE_ERR
));
21
sqlexception->defineReadonlyProperty(QStringLiteral(
"QUOTA_ERR"
), Value::fromInt32(
SQLEXCEPTION_QUOTA_ERR
));
22
sqlexception->defineReadonlyProperty(QStringLiteral(
"SYNTAX_ERR"
), Value::fromInt32(
SQLEXCEPTION_SYNTAX_ERR
));
23
sqlexception->defineReadonlyProperty(QStringLiteral(
"CONSTRAINT_ERR"
), Value::fromInt32(
SQLEXCEPTION_CONSTRAINT_ERR
));
24
sqlexception->defineReadonlyProperty(QStringLiteral(
"TIMEOUT_ERR"
), Value::fromInt32(
SQLEXCEPTION_TIMEOUT_ERR
));
25
engine->globalObject->defineDefaultProperty(QStringLiteral(
"SQLException"
), sqlexception);
26
}
27
28
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QV4
Definition
qjsvalue.h:24
qt_add_sqlexceptions
void qt_add_sqlexceptions(QV4::ExecutionEngine *engine)
Definition
qv4sqlerrors.cpp:13
SQLEXCEPTION_TIMEOUT_ERR
#define SQLEXCEPTION_TIMEOUT_ERR
Definition
qv4sqlerrors_p.h:29
SQLEXCEPTION_UNKNOWN_ERR
#define SQLEXCEPTION_UNKNOWN_ERR
Definition
qv4sqlerrors_p.h:22
SQLEXCEPTION_DATABASE_ERR
#define SQLEXCEPTION_DATABASE_ERR
Definition
qv4sqlerrors_p.h:23
SQLEXCEPTION_QUOTA_ERR
#define SQLEXCEPTION_QUOTA_ERR
Definition
qv4sqlerrors_p.h:26
SQLEXCEPTION_VERSION_ERR
#define SQLEXCEPTION_VERSION_ERR
Definition
qv4sqlerrors_p.h:24
SQLEXCEPTION_SYNTAX_ERR
#define SQLEXCEPTION_SYNTAX_ERR
Definition
qv4sqlerrors_p.h:27
SQLEXCEPTION_TOO_LARGE_ERR
#define SQLEXCEPTION_TOO_LARGE_ERR
Definition
qv4sqlerrors_p.h:25
SQLEXCEPTION_CONSTRAINT_ERR
#define SQLEXCEPTION_CONSTRAINT_ERR
Definition
qv4sqlerrors_p.h:28
qtdeclarative
src
qml
jsruntime
qv4sqlerrors.cpp
Generated on
for Qt by
1.18.0