dbconfig-generate-include(1)
π dbconfig-generate-include(1) π
okay bestie, welcome to dbconfig-common's little generator bestie, dbconfig-generate-include π
she makes custom-format include files, and honestly? she ate.
β¨ NAME β¨
dbconfig-generate-include β generate custom format db include files π
β¨ SYNOPSIS β¨
dbconfig-generate-include [-hv] [-f format] [-o options] [-a]
[-d[varname]] [-u[varname]] [-p[varname]] [-s[varname]] [-P[varname]]
[-t[varname]] [-C[commentstr]] [-O owner[:group]] [-m mode] [-U] infile
[outfile]
like, yes, that's a lot of brackets. she's flexible, she's versatile, she's that girl. π¦
β¨ DESCRIPTION β¨
dbconfig-generate-include is a whole program whose entire job is generating custom format include files β and inside those files lives all the info you need to connect a program to a database resource. literally her only purpose and she's obsessed with it. πΈ
β¨ OPTIONS β¨
okay so here's the full menu, no skips, no cuts, we're listing every single one:
infileβ use the given dbconfig-common config file as input. the main character of the inputs, fr fr. π₯outfileβ use the given file as output. default?stdout, because she's chill like that. π€-f,--formatβ use the given output format. default issh. π¨-o,--optionsβ pass options specific to an output format, as a semicolon separated list. peep theOUTPUT FORMATS/OPTIONSsection below for the tea. β-a,--allβ include all the information in the output. this one's the default, bestie. π-d,--dbnameβ include thedbnamein the output. ποΈ-p,--dbpassβ include thedbpassin the output. π€« (a password! keep it cute and keep it safe)-s,--dbserverβ include thedbserverin the output. π₯οΈ-P,--dbportβ include thedbportin the output. π-u,--dbuserβ include thedbuserin the output. π-t,--dbtypeβ include thedbtypein the output. π§¬-C,--commentβ "comment out" any unset variables, using a comment string that's appropriate for whatever programming language we're in. you can override it with an optional parameter as an arbitrary comment. so like, unset stuff gets politely hidden, not silently yeeted. π¬-O,--ownerβ set theowner:groupof the output file. π«Ά-m,--modeβ set the permissions on the output file. π-U,--ucfβ register theoutputfilewithucf. π-h,--helpβ display this helpful message. hi bestie, you found it π-v,--versionβ output the version and exit. dramatic exit, love that for her. πͺ
π OUTPUT FORMATS/OPTIONS π
format is one of a list of include-file style formats for various programming languages. the current list includes:
shβ/bin/shstyle include file. the classic. the default. the moment. β¨perlβ perl parseable include file. πͺphpβ php parseable include file. πtemplateβ a file which contains a series of fields to be replaced with actual values. all substitutable fields consist of the underlyingdbc_variable name capitalized and surrounded with underscores. for example:_DBC_DBUSER_. no cap, that's the whole pattern. π§- options:
template_infile(path to input file containing template)
- options:
cppβ c-style header file, using#define'd constants. π₯
β οΈ heads up bestie:-o/--optionswants that semicolon separated list, and format-specific options live here in this section. don't go inventing format options that aren't listed, ok? iykyk. π
and that's the whole page, periodt. π this little icon was written by sean finney back in March 2005, and it ships as part of dbconfig-common, manual section 1. go forth and generate those include files, bestie β you're gonna slay πβ¨π¦
π¦ where this page comes from
- debian bookworm: dbconfig-common 2.0.24 Β· GPL-2.0-or-later
- debian trixie: dbconfig-common 2.0.25 Β· GPL-2.0-or-later
- ubuntu jammy: dbconfig-common 2.0.21 Β· GPL-2.0-or-later
- ubuntu noble: dbconfig-common 2.0.24 Β· GPL-2.0-or-later
- ubuntu resolute: dbconfig-common 2.0.25ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: dbconfig-common 2.0.26ubuntu3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms