2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 #ifndef TIZENAPIS_API_DATA_CONTROL_TYPE_H_
20 #define TIZENAPIS_API_DATA_CONTROL_TYPE_H_
22 #define MAP_DATA_CONTROL "MAP"
23 #define SQL_DATA_CONTROL "SQL"
25 #define ROW_DATA_COLUMNS "columns"
26 #define ROW_DATA_VALUES "values"
28 #define OSP_PKGINFO_SQL_TYPE "Sql"
29 #define OSP_PKGINFO_MAP_TYPE "Map"
31 #define PROTOCOL_DATA_MAX 16 * 1024
32 #define ROW_DATA_MAX 1024 * 1024
34 enum _DataControlRequestType
36 _DATACONTROL_REQUEST_TYPE_UNDEFINED = 0,
37 _DATACONTROL_REQUEST_TYPE_SQL_QUERY,
38 _DATACONTROL_REQUEST_TYPE_SQL_INSERT,
39 _DATACONTROL_REQUEST_TYPE_SQL_UPDATE,
40 _DATACONTROL_REQUEST_TYPE_SQL_DELETE,
41 _DATACONTROL_REQUEST_TYPE_MAP_QUERY,
42 _DATACONTROL_REQUEST_TYPE_MAP_INSERT,
43 _DATACONTROL_REQUEST_TYPE_MAP_UPDATE,
44 _DATACONTROL_REQUEST_TYPE_MAP_DELETE
49 DB_COLUMNTYPE_INT = 0, /**< The column type is 4bytes integer */
50 DB_COLUMNTYPE_INT64, /**< The column type is 8bytes integer */
51 DB_COLUMNTYPE_DOUBLE, /**< The column type is double */
52 DB_COLUMNTYPE_TEXT, /**< The column type is text */
53 DB_COLUMNTYPE_BLOB, /**< The column type is blob */
54 DB_COLUMNTYPE_NULL, /**< The column type is null */
55 DB_COLUMNTYPE_UNDEFINED