- Creative Projects for Rust Programmers
- Carlo Milanesi
- 157字
- 2021-06-18 19:01:57
Project overview
In this chapter, we'll look at how to build a program that loads a JSON file and an XML file into three databases: a SQLite database, a PostgreSQL database, and a Redis key-value store. To avoid hardwiring the names and positions of the files and the database credentials into the program, we are going to load them from a TOML configuration file.
The final project is named transformer, but we'll explain this through several preliminary small projects:
- toml_dynamic and toml_static: These read a TOML file in two different ways.
- json_dynamic and json_static: These read a JSON file in two different ways.
- xml_example: This reads an XML file.
- sqlite_example: This creates two tables in a SQLite database, inserts records into them, and queries them.
- postgresql_example: This creates two tables in a PostgreSQL database, inserts records into them, and queries them.
- redis_example: This adds some data to a key-value store and queries it.
推薦閱讀
- 深入理解Android(卷I)
- 軟件項目管理(第2版)
- Mastering SVG
- Interactive Data Visualization with Python
- 微信小程序入門指南
- INSTANT Passbook App Development for iOS How-to
- Python編程:從入門到實踐
- Citrix XenServer企業運維實戰
- 精通MySQL 8(視頻教學版)
- Swift語言實戰晉級
- 零基礎學Scratch 3.0編程
- 零基礎學HTML+CSS
- JavaScript悟道
- Drupal Search Engine Optimization
- Learning D3.js 5 Mapping(Second Edition)