Update change log and spec for wrt-plugins-tizen_0.4.65
[platform/framework/web/wrt-plugins-tizen.git] / src / DataControl / DataType.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18
19 #ifndef TIZENAPIS_API_DATA_CONTROL_TYPE_H_
20 #define TIZENAPIS_API_DATA_CONTROL_TYPE_H_
21
22 #define MAP_DATA_CONTROL "MAP"
23 #define SQL_DATA_CONTROL "SQL"  
24
25 #define ROW_DATA_COLUMNS "columns"
26 #define ROW_DATA_VALUES "values"
27
28 #define OSP_PKGINFO_SQL_TYPE "Sql"
29 #define OSP_PKGINFO_MAP_TYPE "Map"
30
31 #define PROTOCOL_DATA_MAX 16 * 1024
32 #define ROW_DATA_MAX 1024 * 1024
33
34 enum _DataControlRequestType
35 {
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
45 };
46
47 enum DbColumnType
48 {
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
56 };
57
58
59 #endif