Change-Id: Ie7265323208fb0bc882b628c65e3339b6d9bb562
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
void SchemaLoader::__createStoreTable(Schema& schema)
{
std::string attr =
- COL_TIMESTAMP " DATETIME DEFAULT CURRENT_TIMESTAMP,"
- COL_OWNER_ID " TEXT NOT NULL DEFAULT ''";
+ COL_TIMESTAMP " DATETIME DEFAULT CURRENT_TIMESTAMP";
for (auto& item : schema.attributes) {
attr.append(",").append(item.first);
int Store::insert(ContextStoreClient& client, const std::string& columns, std::vector<std::shared_ptr<Tuple>>& tuples)
{
- //TODO: handling owner's ID
if (!__writable(client))
return E_ACCESS;
int Store::remove(ContextStoreClient& client, const std::string selection)
{
- //TODO: handling owner's ID
if (!__writable(client))
return E_ACCESS;
#define BASE_PATH "context-store"
#define COL_TIMESTAMP "__timestamp"
-#define COL_OWNER_ID "__ownerId"
#define DEFAULT_QUERY_LIMIT 10