嵌入式系统数据库选型以及sqlite数据库使用
学习网络安全技术与应用杂志中一篇文章《基于arm-linux 的sqlite 嵌入式数据库技术》后的笔记。 1.嵌入式系统数据库选型原则: a。适当的体积。 b。较强的功能。需要满足多种应用。 c。开源的代码。降低开发成本,完善产品维护,为产品稳定运行被以彻底解决
学习网络安全技术与应用杂志中一篇文章《基于arm-linux 的sqlite 嵌入式数据库技术》后的笔记。
1.嵌入式系统数据库选型原则:
a。适当的体积。
b。较强的功能。需要满足多种应用。
c。开源的代码。降低开发成本,完善产品维护,为产品稳定运行被以彻底解决手段。
2.sqlite
支持大多数sql92:多表,索引,视图,事务,触发,驱动,用户接口。
有效高速可升级。
体系结构:SQLite的分析生成器是高度优化的,可以快速产生高效率代码,抵抗内存泄漏。基于kunth,底部为优化过度b树。可运行在页面缓冲之上,该页面缓存是能调整的,利用最大化降低磁盘查找。再往下为高速缓存,用于os抽象层上方。
开发技术:TCL接口。
应用c语言三个步骤实现api。第一提供访问模式/文件名来对sqlite_open(链接数据库进行调用。第二,执行callback,获取来自数据库结果。第三步,调用sqlite_exec()可执行某个sql查询,且获得一个callback指针。
硬件平台移植:获取源代码,根据差异化平台进行交叉编译,完成移植。
编译步骤:
1.解压源码,生成sqlite目录。
2.echo $path查看path中是否已经包含编译工具:armlinuxgcc
3.修改sqlite/src/sqliteInt.h保证btree变量大小。
4.选择configure完成配置。
5.修改makefile。BCC=armlinuxgccg02修改为gccg02 另外,libsqlite.la修改为.libs/libsqlite.a(静态编译)
6.编译。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

On April 11, Huawei officially announced the HarmonyOS 4.2 100-machine upgrade plan for the first time. This time, more than 180 devices will participate in the upgrade, covering mobile phones, tablets, watches, headphones, smart screens and other devices. In the past month, with the steady progress of the HarmonyOS4.2 100-machine upgrade plan, many popular models including Huawei Pocket2, Huawei MateX5 series, nova12 series, Huawei Pura series, etc. have also started to upgrade and adapt, which means that there will be More Huawei model users can enjoy the common and often new experience brought by HarmonyOS. Judging from user feedback, the experience of Huawei Mate60 series models has improved in all aspects after upgrading HarmonyOS4.2. Especially Huawei M

Hibernate polymorphic mapping can map inherited classes to the database and provides the following mapping types: joined-subclass: Create a separate table for the subclass, including all columns of the parent class. table-per-class: Create a separate table for subclasses, containing only subclass-specific columns. union-subclass: similar to joined-subclass, but the parent class table unions all subclass columns.

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

Recently, Huawei announced that it will launch a new smart wearable product equipped with Xuanji sensing system in September, which is expected to be Huawei's latest smart watch. This new product will integrate advanced emotional health monitoring functions. The Xuanji Perception System provides users with a comprehensive health assessment with its six characteristics - accuracy, comprehensiveness, speed, flexibility, openness and scalability. The system uses a super-sensing module and optimizes the multi-channel optical path architecture technology, which greatly improves the monitoring accuracy of basic indicators such as heart rate, blood oxygen and respiration rate. In addition, the Xuanji Sensing System has also expanded the research on emotional states based on heart rate data. It is not limited to physiological indicators, but can also evaluate the user's emotional state and stress level. It supports the monitoring of more than 60 sports health indicators, covering cardiovascular, respiratory, neurological, endocrine,

According to news from this site on April 22, SPARKLE Technology announced the launch of Intel Arc embedded graphics cards, including PCIe versions of A310E, A380E and MXM versions of A350E and A370E graphics cards, with a commitment to support services for up to 5 years. SPARKLE Intel ArcA380E Graphics Card IA30GC-TN4E This graphics card has a TBP (note on this site: TotalBoardPower) of 75W. It adopts a dual-slot single-fan design, 6GBGDDR6 video memory, provides 1 HDMI and 3 DisplayPort interfaces, and has 5-year support services. SPARKLE Intel Ruixuan ArcA380E half-height graphics card IA30GBL-TN4E this half-height graphics card T

HTML cannot read the database directly, but it can be achieved through JavaScript and AJAX. The steps include establishing a database connection, sending a query, processing the response, and updating the page. This article provides a practical example of using JavaScript, AJAX and PHP to read data from a MySQL database, showing how to dynamically display query results in an HTML page. This example uses XMLHttpRequest to establish a database connection, send a query and process the response, thereby filling data into page elements and realizing the function of HTML reading the database.
