SQLite database updating method and device

A database and data table technology, applied in the field of computer communication, can solve problems such as equipment configuration disorder, upgrade, and affect the operation of network equipment, and achieve the effect of reducing error rate and improving efficiency

Inactive Publication Date: 2017-06-06
HANGZHOU DPTECH TECH
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when a network device is running, it is necessary to upgrade the software version of the network device when new functions are added or existing problems are repaired.
After the software version of the network device is upgraded, if the database upgraded with the software version is not compatible with the upgraded software version, for example, the value corresponding to some new fields with primary key constraints in the upgraded database is not the default value, etc. , may cause disorder in the configuration of the device and affect the operation of the network device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SQLite database updating method and device
  • SQLite database updating method and device
  • SQLite database updating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0028] The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an SQLite database updating method and device. The method comprises the following steps of judging whether or not a second data table which has a same table name with a first data table in a target database exists in a source database; if yes, establishing a mapping data table corresponding to the second data table in the source database; searching for newly added fields in the first data table, and establishing mapping fields which have same field names with the newly added fields in the mapping data table; judging whether or not the found newly added fields pre-configure primary key constraints and defaults; if yes, recording the names of the newly added fields and the defaults; adding the data stored in the second data table, the names of the recorded newly added fields and the defaults to the mapping data table by utilizing insert statements. The compatibility of the updated database and a soft version obtained after network devices are updated can be effectively improved by utilizing the provided method.

Description

technical field [0001] The present application relates to the field of computer communication, in particular to a method and device for upgrading an SQLite database. Background technique [0002] With the rapid development of information technology and Internet technology, databases have been widely used in various fields because of their outstanding advantages such as security, reliability, portability and maintainability. [0003] For a network device, generally, the configuration information of the network device system can be stored in a database of the network device. However, when a network device is in operation, when a new function is added or an existing problem is repaired, the software version of the network device needs to be upgraded. After the software version of the network device is upgraded, if the database upgraded with the software version is not compatible with the upgraded software version, for example, the value corresponding to some new fields with pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F17/30
CPCG06F16/213G06F8/65G06F16/27G06F16/23G06F16/2282
Inventor 符志清谢春平
Owner HANGZHOU DPTECH TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products