Home
last modified time | relevance | path

Searched refs:newTableName (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/security/access_token/services/privacymanager/src/database/
H A Dpermission_used_record_db.cpp673 static void CreateNewPermissionRecordTable(std::string& newTableName, std::string& createNewSql) in CreateNewPermissionRecordTable() argument
676 createNewSql.append(newTableName + " (") in CreateNewPermissionRecordTable()
716 std::string newTableName = it->second.tableName_ + "_new"; in UpdatePermissionRecordTablePrimaryKey() local
718 CreateNewPermissionRecordTable(newTableName, createNewSql); in UpdatePermissionRecordTablePrimaryKey()
729 std::string copyDataSql = "insert into " + newTableName + " select * from " + tableName; in UpdatePermissionRecordTablePrimaryKey()
747 std::string renameSql = "alter table " + newTableName + " rename to " + tableName; in UpdatePermissionRecordTablePrimaryKey()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_utils.h164 …tic int CreateSameStuTable(sqlite3 *db, const TableInfo &baseTbl, const std::string &newTableName);
165 …ic int CloneIndexes(sqlite3 *db, const std::string &oriTableName, const std::string &newTableName);
H A Dsqlite_utils.cpp1524 …teUtils::CreateSameStuTable(sqlite3 *db, const TableInfo &baseTbl, const std::string &newTableName) in CreateSameStuTable() argument
1526 std::string sql = "CREATE TABLE IF NOT EXISTS '" + newTableName + "' ("; in CreateSameStuTable()
1561 …eUtils::CloneIndexes(sqlite3 *db, const std::string &oriTableName, const std::string &newTableName) in CloneIndexes() argument
1565 newTableName + "_' || il.name || ' ON ' || '" + newTableName + in CloneIndexes()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_single_relational_storage_engine.cpp861 for (const auto &[oldTableName, newTableName] : alterTableNames) { in DoAlterSharedTableName()
863 tableInfo.SetTableName(newTableName); in DoAlterSharedTableName()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_usage_database.cpp1211 string newTableName = tablePrefix + to_string(tableNewTime); in ExecuteRenameTableName() local
1212 string renameTableNameSql = "alter table " + oldTableName + " rename to " + newTableName; in ExecuteRenameTableName()