WO2018126379A1 - 智能终端应用软件的数据库管理方法 - Google Patents

智能终端应用软件的数据库管理方法 Download PDF

Info

Publication number
WO2018126379A1
WO2018126379A1 PCT/CN2017/070235 CN2017070235W WO2018126379A1 WO 2018126379 A1 WO2018126379 A1 WO 2018126379A1 CN 2017070235 W CN2017070235 W CN 2017070235W WO 2018126379 A1 WO2018126379 A1 WO 2018126379A1
Authority
WO
WIPO (PCT)
Prior art keywords
database
array data
management method
application software
database management
Prior art date
Application number
PCT/CN2017/070235
Other languages
English (en)
French (fr)
Inventor
王志全
Original Assignee
深圳市前海中康汇融信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市前海中康汇融信息技术有限公司 filed Critical 深圳市前海中康汇融信息技术有限公司
Priority to PCT/CN2017/070235 priority Critical patent/WO2018126379A1/zh
Publication of WO2018126379A1 publication Critical patent/WO2018126379A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of database management, and in particular to a database management method suitable for intelligent terminal application software.
  • the initial software version is 1.0, which can then be labeled 1.1, 1.2, 2.0, 3.0, and so on.
  • the software database needs to be upgraded and managed.
  • the software database version can be 1; corresponding to software version 1.1, the software database version can be 2, and so on.
  • the application version 1.1 of the smart terminal reads the database of the application software version 1.0 (ie, the old database), the software database needs to be upgraded at the same time.
  • the present invention provides a database management method for a smart terminal application software, and a package Included: determining that the installation of the application software belongs to the first installation or version update; when the installation of the application software belongs to the first installation, creating multiple array data in the database; when the installation of the application software belongs to the version update, Each of the plurality of array data in the database performs traversal; and each of the plurality of array data in the database is updated in accordance with performing traversal.
  • the database management method may further include storing a history of version updates locally.
  • the database management method may further include storing a history of version updates in the cloud.
  • the step of storing a history of version updates in the cloud includes notifying the smart terminal to perform a version update when the application has the latest version.
  • the step of notifying the smart terminal to perform a version update comprises: notifying a version update mode and a download address of the smart terminal according to related information of a latest version of the application software.
  • the step of performing traversal on each of the plurality of array data in the database comprises performing traversal in an order in which the indexes of the plurality of array data are sequentially added one by one.
  • the step of performing traversal on each of the plurality of array data in the database comprises performing traversal in an order in which the indexes of the plurality of array data are sequentially decremented by one.
  • the step of creating a plurality of array data in the database includes creating a plurality of SQL array data.
  • the step of updating each of the plurality of array data in the database in accordance with performing traversal comprises: setting an index of the plurality of array data to correspond to an updated version number.
  • the database management method provided by the present invention can effectively create or update a plurality of array data in a database of the smart terminal application software.
  • FIG. 1 is a flowchart of a database management method of a smart terminal application software according to an embodiment of the present invention.
  • FIG. 2 is a flow chart showing a database management method of a smart terminal application software according to another embodiment of the present invention.
  • FIG. 3 is a flow chart showing a database management method of a smart terminal application software according to still another embodiment of the present invention.
  • FIG. 1 is a flow chart of a database management method 100 for application software of a smart terminal (eg, a portable device such as a smart phone, tablet, personal digital assistant (PDA), etc., in accordance with an embodiment of the present invention.
  • the database management method 100 can include the following steps:
  • the determining method 102 can include determining that the installation of the application software belongs to a first installation or a version update.
  • the software version number installed for the first time is marked as 0.0; the software version number for the first version update is marked as 1.0; the software version number for the second version update is marked as 2.0, and so on.
  • the creating step 104 may include creating a plurality of array data in the database when the determining step 102 determines that the installation of the application software belongs to the first installation (eg, the software version number is marked as 0.0).
  • the creating step 104 can include creating a plurality of SQL array data, such as arrays [1]-[N], where N is an integer.
  • the traversing step 106 may include: when the determining step 102 determines that the installation of the application software belongs to the version When the update (eg, the software version number is marked as 1.0), traversal is performed on each of the plurality of array data in the database.
  • the update eg, the software version number is marked as 1.0
  • traversing step 106 can include performing traversal (eg, 1 to 2 to 3, sequentially to N) in an order in which the indices of the plurality of array data are sequentially incremented by one.
  • the traversing step 106 can include performing traversal (N to N-1 to N-2, sequentially to 1) in an order in which the indices of the plurality of array data are sequentially decremented by one.
  • the updating step 108 can include updating each of the plurality of array data in the database (eg, data in the arrays [1]-[N]) in accordance with the execution traversal of the traversal step 106.
  • the updating step 108 can include setting an index of the plurality of array data to correspond to an updated version number.
  • the array [1_0] corresponds to the software version number 0.0
  • the array [1_1] corresponds to the software version number 1.0, and so on.
  • FIG. 2 is a flow chart of a database management method 200 of a smart terminal application software according to another embodiment of the present invention.
  • the database management method 200 of FIG. 2 is similar to the database management method 100 of FIG. For the sake of simplicity, similar parts are not described here.
  • the local storage step 210 can include storing a history of version updates locally.
  • FIG. 3 is a flow chart showing a database management method 300 of a smart terminal application software according to still another embodiment of the present invention.
  • the database management method 300 of FIG. 3 is similar to the database management method 100 of FIG. 1 except for the server storage step 310. For the sake of simplicity, similar parts are not described here.
  • the server storage step 310 can include storing a history of version updates on the server.
  • the server storing step 310 may include notifying the smart terminal to perform a version update when the application software has the latest version.
  • the server storing step 310 may include notifying a version update mode and a download address (eg, downloading a web address) of the smart terminal according to related information of the latest version of the application software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种智能终端应用软件的数据库管理方法,包括:判断应用软件的安装属于首次安装或版本更新(102);当属于首次安装时,创建数据库中的多个数组数据(104);当属于版本更新时,对数据库中的多个数组数据中的每一个执行遍历(106);根据执行遍历而更新数据库中的多个数组数据中的每一个(108)。上述数据库管理方法能够有效地创建或更新智能终端应用软件的数据库中的多个数组数据。

Description

智能终端应用软件的数据库管理方法 技术领域
本发明涉及数据库管理领域,并且特别涉及一种适用于智能终端应用软件的数据库管理方法。
背景技术
当今,随着智能终端(例如,智能手机)的日渐普及,也出现了越来越多的应用软件。由于故障修复或功能改进等项目开发,会经常需要对这些应用软件进行升级更新。例如,最开始的软件版本为1.0,随后可以标记为1.1、1.2、2.0、3.0等等。
对应于这些应用软件的升级更新,也需要对软件的数据库进行升级管理。例如,对应于软件版本1.0,软件数据库版本可为1;对应于软件版本1.1,软件数据库版本可为2,以此类推。当智能终端的应用软件版本1.1读取应用软件版本1.0的数据库(即,旧数据库)时,同时需要对软件数据库进行升级。
现有技术中无法实现数据库自动更新,而是通过手动设置数据库版本来实现数据库更新。由于应用软件可能会频繁更新或者卸载重装,这种手动数据库管理方式显然是不便捷的。
因此,需要一种能够提供智能终端应用软件的数据库自动更新的管理方法。
发明内容
本发明的目的在于提供一种改进的智能终端应用软件的数据库管理方法。
为实现本目的,本发明提供一种智能终端应用软件的数据库管理方法,包 括:判断所述应用软件的安装属于首次安装或版本更新;当所述应用软件的安装属于首次安装时,创建数据库中的多个数组数据;当所述应用软件的安装属于版本更新时,对所述数据库中的所述多个数组数据中的每一个执行遍历;以及根据执行遍历而更新所述数据库中的所述多个数组数据中的每一个。
在一个实施例中,所述数据库管理方法还可包括:在本地存储关于版本更新的历史记录。
在一个实施例中,所述数据库管理方法还可包括:在云端存储关于版本更新的历史记录。
在一个实施例中,所述在云端存储关于版本更新的历史记录的步骤包括:当所述应用软件有最新的版本时,通知所述智能终端进行版本更新。
在一个实施例中,所述通知所述智能终端进行版本更新的步骤包括:根据所述应用软件的最新版本的相关信息,通知所述智能终端的版本更新方式和下载地址。
在一个实施例中,所述对所述数据库中的所述多个数组数据中的每一个执行遍历的步骤包括:按照所述多个数组数据的索引依次加一的顺序来执行遍历。
在一个实施例中,所述对所述数据库中的所述多个数组数据中的每一个执行遍历的步骤包括:按照所述多个数组数据的索引依次减一的顺序来执行遍历。
在一个实施例中,所述创建数据库中的多个数组数据的步骤包括:创建多个SQL数组数据。
在一个实施例中,所述根据执行遍历而更新所述数据库中的所述多个数组数据中的每一个的步骤包括:将所述多个数组数据的索引设置为对应于更新的版本号。
本发明所提供的数据库管理方法能够有效地创建或更新智能终端应用软件的数据库中的多个数组数据。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1所示是根据本发明实施例的智能终端应用软件的数据库管理方法的流程图。
图2所示是根据本发明另一实施例的智能终端应用软件的数据库管理方法的流程图。
图3所示是根据本发明又一实施例的智能终端应用软件的数据库管理方法的流程图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
图1所示是根据本发明实施例的智能终端(例如,智能手机、平板电脑、个人数字助理(PDA)等便携设备)的应用软件的数据库管理方法100的流程图。如图1所示,数据库管理方法100可包括以下步骤:
判断方法102可包括:判断所述应用软件的安装属于首次安装或版本更新。
例如,首次安装的软件版本号标记为0.0;第一次版本更新的软件版本号标记为1.0;第二次版本更新的软件版本号标记为2.0,以此类推。
创建步骤104可包括:当判断步骤102判断出所述应用软件的安装属于首次安装(例如,软件版本号标记为0.0)时,创建数据库中的多个数组数据。
在一个示例中,所述创建步骤104可包括:创建多个SQL数组数据,例如数组[1]-[N],其中N为整数。
遍历步骤106可包括:当判断步骤102判断出所述应用软件的安装属于版 本更新(例如,软件版本号标记为1.0)时,对所述数据库中的所述多个数组数据中的每一个执行遍历。
例如,在一个示例中,遍历步骤106可包括:按照所述多个数组数据的索引依次加一的顺序来执行遍历(例如,1至2至3,依次至N)。在另一个示例中,遍历步骤106可包括:按照所述多个数组数据的索引依次减一的顺序来执行遍历(N至N-1至N-2,依次至1)。
更新步骤108可包括:根据所述遍历步骤106的执行遍历而更新所述数据库中的所述多个数组数据中的每一个(例如,数组[1]-[N]中的数据)。
在一个实施例中,所述更新步骤108可包括:将所述多个数组数据的索引设置为对应于更新的版本号。例如,数组[1_0]对应于软件版本号0.0,数组[1_1]对应于软件版本号1.0,以此类推。
图2所示是根据本发明另一实施例的智能终端应用软件的数据库管理方法200的流程图。除了本地存储步骤210之外,图2中的数据库管理方法200类似于图1中的数据库管理方法100。为简约起见,相似部分不另赘述。
在一个实施例中,本地存储步骤210可包括:在本地存储关于版本更新的历史记录。
图3所示是根据本发明又一实施例的智能终端应用软件的数据库管理方法300的流程图。除了服务器存储步骤310之外,图3中的数据库管理方法300类似于图1中的数据库管理方法100。为简约起见,相似部分不另赘述。
在一个实施例中,服务器存储步骤310可包括:在服务器上存储关于版本更新的历史记录。
在一个实施例中,所述服务器存储步骤310可包括:当所述应用软件有最新的版本时,通知所述智能终端进行版本更新。
在另一个实施例中,所述服务器存储步骤310可包括:根据所述应用软件的最新版本的相关信息,通知所述智能终端的版本更新方式和下载地址(例如,下载网址)。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (9)

  1. 一种智能终端应用软件的数据库管理方法,包括:
    判断所述应用软件的安装属于首次安装或版本更新;
    当所述应用软件的安装属于首次安装时,创建数据库中的多个数组数据;
    当所述应用软件的安装属于版本更新时,对所述数据库中的所述多个数组数据中的每一个执行遍历;以及
    根据执行遍历而更新所述数据库中的所述多个数组数据中的每一个。
  2. 如权利要求1所述的数据库管理方法,还包括:
    在本地存储关于版本更新的历史记录。
  3. 如权利要求1所述的数据库管理方法,还包括:
    在云端存储关于版本更新的历史记录。
  4. 如权利要求3所述的数据库管理方法,其特征在于,所述在云端存储关于版本更新的历史记录的步骤包括:
    当所述应用软件有最新的版本时,通知所述智能终端进行版本更新。
  5. 如权利要求4所述的数据库管理方法,其特征在于,所述通知所述智能终端进行版本更新的步骤包括:
    根据所述应用软件的最新版本的相关信息,通知所述智能终端的版本更新方式和下载地址。
  6. 如权利要求1所述的数据库管理方法,其特征在于,所述对所述数据库中的所述多个数组数据中的每一个执行遍历的步骤包括:
    按照所述多个数组数据的索引依次加一的顺序来执行遍历。
  7. 如权利要求1所述的数据库管理方法,其特征在于,所述对所述数据库中的所述多个数组数据中的每一个执行遍历的步骤包括:
    按照所述多个数组数据的索引依次减一的顺序来执行遍历。
  8. 如权利要求1所述的数据库管理方法,其特征在于,所述创建数据库中的多个数组数据的步骤包括:
    创建多个SQL数组数据。
  9. 如权利要求1所述的数据库管理方法,其特征在于,所述根据执行遍历而更新所述数据库中的所述多个数组数据中的每一个的步骤包括:
    将所述多个数组数据的索引设置为对应于更新的版本号。
PCT/CN2017/070235 2017-01-05 2017-01-05 智能终端应用软件的数据库管理方法 WO2018126379A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/070235 WO2018126379A1 (zh) 2017-01-05 2017-01-05 智能终端应用软件的数据库管理方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/070235 WO2018126379A1 (zh) 2017-01-05 2017-01-05 智能终端应用软件的数据库管理方法

Publications (1)

Publication Number Publication Date
WO2018126379A1 true WO2018126379A1 (zh) 2018-07-12

Family

ID=62788958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/070235 WO2018126379A1 (zh) 2017-01-05 2017-01-05 智能终端应用软件的数据库管理方法

Country Status (1)

Country Link
WO (1) WO2018126379A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656589A (zh) * 2018-11-27 2019-04-19 许继集团有限公司 一种智能变电站二次设备软件管控方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495733A (zh) * 2011-12-08 2012-06-13 方正国际软件有限公司 应用程序与相关数据库脚本兼容性检测和升级维护的方法
CN103324716A (zh) * 2013-06-25 2013-09-25 四川九洲电器集团有限责任公司 一种基于安卓系统的应用程序数据库更新方法
CN103810257A (zh) * 2014-01-24 2014-05-21 华为技术有限公司 一种升级软件数据库的方法、装置及设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495733A (zh) * 2011-12-08 2012-06-13 方正国际软件有限公司 应用程序与相关数据库脚本兼容性检测和升级维护的方法
CN103324716A (zh) * 2013-06-25 2013-09-25 四川九洲电器集团有限责任公司 一种基于安卓系统的应用程序数据库更新方法
CN103810257A (zh) * 2014-01-24 2014-05-21 华为技术有限公司 一种升级软件数据库的方法、装置及设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656589A (zh) * 2018-11-27 2019-04-19 许继集团有限公司 一种智能变电站二次设备软件管控方法及系统
CN109656589B (zh) * 2018-11-27 2022-04-05 许继集团有限公司 一种智能变电站二次设备软件管控方法及系统

Similar Documents

Publication Publication Date Title
US11531535B2 (en) Firmware upgrade method and apparatus, and terminal
CN103559065B (zh) 一种ota升级的方法和系统
US20130066901A1 (en) Hash-based file comparison
US20070169101A1 (en) Multi-Branch Management for Updating Software
EP3001309A1 (en) Application migration method, device and system for mobile terminal
CN111858577B (zh) 存储管理的方法、设备和计算机程序产品
CN107483241B (zh) 一种在网元升级过程中下载升级镜像版本的方法和装置
CN107368513B (zh) 客户端数据库更新的方法及装置
CN104035800A (zh) 一种增量包生成方法、版本升级方法、装置以及系统
CN111104151B (zh) 一种基于Shell脚本的Git代码简化的管理方法
CN106657433B (zh) 一种多网卡环境下物理网卡的命名方法和装置
US20130055285A1 (en) Discovery and activation of application extensions
US8769521B2 (en) Calendar aware adaptive patching of a computer program
WO2019041891A1 (zh) 升级包的生成方法及装置
CN103530420A (zh) 数据文件的动态更新方法及装置
US20130185709A1 (en) Installation engine and package format for parallelizable, reliable installations
CN110333876A (zh) 一种数据清除方法及控制设备
US20210019283A1 (en) Data archive release in context of data object
US10146520B1 (en) Updating a running application on a computing device
WO2018126379A1 (zh) 智能终端应用软件的数据库管理方法
CN112612489B (zh) 软件的升级包构建方法、装置和电子设备
KR101632288B1 (ko) 고급 운영 시스템(hlos) 부팅 전에 스마트폰에 연결된 주변기기 디바이스들을 위한 디바이스 드라이버들을 프리페칭하기 위한 방법 및 장치
US20210342327A1 (en) Method, device, and computer program product for information processing
CN104461612A (zh) 一种数据处理方法及装置
JP6788002B2 (ja) モバイル端末のためのデータ記憶方法及び装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17890040

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/11/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17890040

Country of ref document: EP

Kind code of ref document: A1