dbconfig-load-include(1)

✨ NAME ✨

dbconfig-load-include β€” bestie, this is the lil parser that reads your custom-format db config files πŸ’… (it lives in the dbconfig-common manual, iykyk)


🌸 SYNOPSIS 🌸

dbconfig-load-include [-hv] [-a] [-d[varname]] [-u[varname]]
[-p[varname]] [-s[varname]] [-P[varname]] [-t[varname]] -f format infile

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. dbconfig-load-include is a program that parses custom format include files β€” the ones holding all the info you need to connect a program to a database resource. literally the whole glow-up kit πŸ”₯

its main character moment is being used by the dbconfig-common package to import database settings from packages that had pre-existing configurations and then migrated over to dbconfig-common. no cap, that's the vibe 🫢

want more tea? go look at /usr/share/doc/dbconfig-common.


πŸ’– OPTIONS πŸ’–

  • infile β€” use the given config file as input. feed it the file, bestie πŸ“
  • -f, --format β€” use the given output format. default is sh. pick your aesthetic ✨
  • -a, --all β€” include all the information in the output. this one is the default, she's already doing the most πŸ‘‘
  • -d, --dbname β€” include the dbname in the output
  • -p, --dbpass β€” include the dbpass in the output
  • -s, --dbserver β€” include the dbserver in the output
  • -P, --dbport β€” include the dbport in the output
  • -u, --dbuser β€” include the dbuser in the output
  • -t, --dbtype β€” include the dbtype in the output
  • -h, --help β€” display this helpful message πŸ₯°
  • -v, --version β€” output the version and exit πŸŽ€

🌈 so what even IS a format 🌈

format is one of a list of include-file style formats for various programming languages. the current list includes:

  • sh β€” /bin/sh style include file 🐚
  • perl β€” perl parseable include file πŸͺ
  • php β€” php parseable include file 🐘
  • exec β€” run the file as a script and interpret its output πŸƒβ™€οΈ
fr fr, that's the entire list as it stands right now β€” don't go inventing new ones in your head πŸ’€

sean finney wrote this one back in March 2005, and it ships as part of dbconfig-common β€” so yeah, shoutout to the original author, that's history bestie πŸŒΈβœ¨πŸ’œ