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

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.
主站蜘蛛池模板: 板桥市| 桐梓县| 东光县| 台东县| 饶阳县| 高雄市| 夹江县| 乌拉特前旗| 安阳县| 永靖县| 昭通市| 岳阳市| 阳江市| 哈尔滨市| 溧水县| 靖宇县| 满洲里市| 阳高县| 崇礼县| 烟台市| 陈巴尔虎旗| 德保县| 涿州市| 福建省| 江达县| 赞皇县| 漯河市| 九龙坡区| 五原县| 商都县| 呼图壁县| 靖江市| 五指山市| 万全县| 灵山县| 紫金县| 通州市| 揭阳市| 茂名市| 马公市| 乌海市|