CDIST-TYPE__POSTGRES_DATABASE(7)

πŸ’– cdist-type__postgres_database(7) πŸ’–

okay bestie, welcome to the cdist manual for cdist-type__postgres_database β€” she's a section 7 type page, she's part of the cdist docs, and she's here to make your postgres database life so much easier. let's go 🫢


✨ NAME ✨

cdist-type__postgres_database β€” Create/drop postgres databases. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 DESCRIPTION 🌸

so this cdist type is the one you call when you want to create or drop postgres databases. no cap, that is literally the entire vibe. you point her at a database name, she handles the rest.


πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

all of these are optional, so you've got options (iconic of her honestly):

  • state β€” either 'present' or 'absent', and if you don't say anything she defaults to 'present'. present = make it exist, absent = bye bye πŸ‘‹
  • owner β€” tells her which database user is gonna own the new database. main character assignment fr 🫢
  • encoding β€” the character encoding scheme to be used in this database. set it, love it, keep your emoji safe πŸ¦‹
  • lc-collate β€” the LC_COLLATE setting for this database. she said collation matters ✨
  • lc-ctype β€” the LC_CTYPE setting for this database. character classification, but make it cute 🌸
  • template β€” the template database she should build this database from. copy her homework but make it official πŸ’œ

πŸ¦‹ EXAMPLES πŸ¦‹

here's the moment you've been waiting for, the actual usage:

__postgres_database mydbname --owner mydbusername

look at her go. one line, one database, one owner. obsessed 😭


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS πŸ‘‘

Steven Armstrong <steven-cdist--@--armstrong.cc> β€” the legend who wrote this. say thank you πŸ’


πŸ“œ COPYING πŸ“œ

Copyright (C) 2011 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

fr fr, that's the actual license text, don't skip it. GPLv3-or-later, bestie, respect the rules 🫑

ungleich GmbH 2021


and that's a wrap, bestie πŸ’– this was version 7.0.0 of the page, dated Jul 31, 2022, brought to you by the fine people at ungleich GmbH. go forth and create (or drop) databases responsibly. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from