fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Dundar Göccompletions(postgresql): shorten descriptionsf45ca4aca

master
4.5 KiB60 linesraw
1complete -c pg_dump --no-files -a '(__fish_complete_pg_database)'
2
3# General options:
4complete -c pg_dump -s f -l file -r -d "Output file or directory name"
5complete -c pg_dump -s F -l format -x -a "p\t'Plain text' c\t'Custom format' d\t'Directory archive' t\t'Tar archive'" -d "Output file format"
6complete -c pg_dump -s j -l jobs -x -d "Number of parallel jobs to dump"
7complete -c pg_dump -s v -l verbose -d "Verbose mode"
8complete -c pg_dump -s V -l version -d "Output version information"
9complete -c pg_dump -s Z -l compress -x -d "Compression level for compressed formats"
10complete -c pg_dump -l lock-wait-timeout -x -d "Fail after waiting TIMEOUT for a table lock"
11complete -c pg_dump -l no-sync -d "Do not wait for changes to be written safely to disk"
12complete -c pg_dump -s '?' -l help -d "Show this help"
13
14# Options controlling the output content:
15complete -c pg_dump -s a -l data-only -d "Dump only the data, not the schema"
16complete -c pg_dump -s b -l blobs -d "Include large objects in dump"
17complete -c pg_dump -s B -l no-blobs -d "Exclude large objects in dump"
18complete -c pg_dump -s c -l clean -d "Clean (drop) database objects before recreating"
19complete -c pg_dump -s C -l create -d "Include commands to create database in dump"
20complete -c pg_dump -s E -l encoding -x -d "Dump the data in encoding ENCODING"
21complete -c pg_dump -s n -l schema -x -d "Dump the named schemas only"
22complete -c pg_dump -s N -l exclude-schema -x -d "Do NOT dump the named schemas"
23complete -c pg_dump -s o -l oids -d "Include OIDs in dump"
24complete -c pg_dump -s O -l no-owner -d "Skip restoration of object ownership in plain-text format"
25complete -c pg_dump -s s -l schema-only -d "Dump only the schema, no data"
26complete -c pg_dump -s S -l superuser -x -d "Superuser user name to use in plain-text format"
27complete -c pg_dump -s t -l table -x -d "Dump the named tables only"
28complete -c pg_dump -s T -l exclude-table -x -d "Do NOT dump the named tables"
29complete -c pg_dump -s x -l no-privileges -d "Do not dump privileges (grant/revoke)"
30complete -c pg_dump -l binary-upgrade -d "For use by upgrade utilities only"
31complete -c pg_dump -l column-inserts -d "Dump data as INSERT commands with column names"
32complete -c pg_dump -l disable-dollar-quoting -d "Disable dollar quoting, use SQL standard quoting"
33complete -c pg_dump -l disable-triggers -d "Disable triggers during data-only restore"
34complete -c pg_dump -l enable-row-security -d "Enable row security (dump only content user has access to)"
35complete -c pg_dump -l exclude-table-data -x -d "Do NOT dump data for the named tables"
36complete -c pg_dump -l if-exists -d "Use IF EXISTS when dropping objects"
37complete -c pg_dump -l inserts -d "Dump data as INSERT commands, rather than COPY"
38complete -c pg_dump -l load-via-partition-root -d "Load partitions via the root table"
39complete -c pg_dump -l no-comments -d "Do not dump comments"
40complete -c pg_dump -l no-publications -d "Do not dump publications"
41complete -c pg_dump -l no-security-labels -d "Do not dump security label assignments"
42complete -c pg_dump -l no-subscriptions -d "Do not dump subscriptions"
43complete -c pg_dump -l no-synchronized-snapshots -d "Do not use synchronized snapshots in parallel jobs"
44complete -c pg_dump -l no-tablespaces -d "Do not dump tablespace assignments"
45complete -c pg_dump -l no-unlogged-table-data -d "Do not dump unlogged table data"
46complete -c pg_dump -l quote-all-identifiers -d "Quote all identifiers, even if not key words"
47complete -c pg_dump -l section -x -a "pre-data data post-data" -d "Dump named section (pre-data, data, or post-data)"
48complete -c pg_dump -l serializable-deferrable -d "Wait until the dump can run without anomalies"
49complete -c pg_dump -l snapshot -x -d "Use given snapshot for the dump"
50complete -c pg_dump -l strict-names -d "Require table/schema include patterns to match entities"
51complete -c pg_dump -l use-set-session-authorization -d "Use SET SESSION AUTHORIZATION instead of ALTER OWNER"
52
53# Connection options:
54complete -c pg_dump -s d -l dbname -x -a '(__fish_complete_pg_database)' -d "Database to dump"
55complete -c pg_dump -s h -l host -x -a '(__fish_print_hostnames)' -d "Database server host or socket directory"
56complete -c pg_dump -s p -l port -x -d "Database server port number"
57complete -c pg_dump -s U -l username -x -a '(__fish_complete_pg_user)' -d "Connect as specified database user"
58complete -c pg_dump -s w -l no-password -d "Never prompt for password"
59complete -c pg_dump -s W -l password -d "Force password prompt (should happen automatically)"
60complete -c pg_dump -l role -x -d "Do SET ROLE before dump"