- Creative Projects for Rust Programmers
- Carlo Milanesi
- 192字
- 2021-06-18 19:01:57
Storing and Retrieving Data
A typical need of any software application is to input/output data by reading/writing data files or data streams or by querying/manipulating a database. Regarding files and streams, unstructured data, or even binary data, is hard to manipulate, and so they are not recommended.
Also, proprietary data formats are not recommended because of the vendor lock-in risk, and so only standard data formats should be used. Fortunately, there are free Rust libraries that come to the rescue in these situations. There are Rust crates available to manipulate some of the most popular file formats, such as TOML, JSON, and XML.
In terms of databases, there are Rust crates to manipulate data using some of the most popular databases, such as SQLite, PostgreSQL, and Redis.
In this chapter, you will learn about the following:
- How to read configuration data from a TOML file
- How to read or write a JSON data file
- How to read an XML data file
- How to query or manipulate data in a SQLite database
- How to query or manipulate data in a PostgreSQL database
- How to query or manipulate data in a Redis database
- Mastering Zabbix(Second Edition)
- 數據庫系統原理及MySQL應用教程
- Visual Basic程序設計(第3版):學習指導與練習
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- 算法精粹:經典計算機科學問題的Python實現
- Building a Quadcopter with Arduino
- 基于Swift語言的iOS App 商業實戰教程
- Hands-On Natural Language Processing with Python
- Learning Python Design Patterns
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- Python3.5從零開始學
- Julia for Data Science
- Go語言底層原理剖析
- Learning Concurrency in Python
- 視窗軟件設計和開發自動化:可視化D++語言