官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 裕民县| 康马县| 滦南县| 西乌珠穆沁旗| 登封市| 宜阳县| 盖州市| 商都县| 隆德县| 宝兴县| 阳曲县| 民权县| 瑞金市| 根河市| 改则县| 湖南省| 额济纳旗| 日喀则市| 柘城县| 鹤庆县| 临朐县| 托里县| 饶河县| 蓬溪县| 太仓市| 新营市| 鹤壁市| 株洲县| 宜章县| 浠水县| 宁强县| 泰来县| 洮南市| 赣榆县| 凤凰县| 宜都市| 彝良县| 屏边| 元江| 武定县| 临洮县|