- 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.
推薦閱讀
- Learning Single:page Web Application Development
- SOA實踐
- 前端跨界開發指南:JavaScript工具庫原理解析與實戰
- Symfony2 Essentials
- Python High Performance Programming
- Instant Lucene.NET
- Hands-On Nuxt.js Web Development
- Xcode 6 Essentials
- Android Sensor Programming By Example
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)
- 交互設計師成長手冊:從零開始學交互
- IBM RUP參考與認證指南
- Android嵌入式系統程序開發(基于Cortex-A8)
- Java從入門到精通(視頻實戰版)
- 創新工場講AI課:從知識到實踐