mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-19 08:51:25 -07:00
postgresql modules: fix examples to use FQCN (#643)
This commit is contained in:
parent
a424ee71e3
commit
f62b8027e0
22 changed files with 138 additions and 138 deletions
|
@ -100,12 +100,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = r'''
|
||||
- name: Copy text TAB-separated data from file /tmp/data.txt to acme table
|
||||
postgresql_copy:
|
||||
community.general.postgresql_copy:
|
||||
copy_from: /tmp/data.txt
|
||||
dst: acme
|
||||
|
||||
- name: Copy CSV (comma-separated) data from file /tmp/data.csv to columns id, name of table acme
|
||||
postgresql_copy:
|
||||
community.general.postgresql_copy:
|
||||
copy_from: /tmp/data.csv
|
||||
dst: acme
|
||||
columns: id,name
|
||||
|
@ -115,7 +115,7 @@ EXAMPLES = r'''
|
|||
- name: >
|
||||
Copy text vertical-bar-separated data from file /tmp/data.txt to bar table.
|
||||
The NULL values are specified as N
|
||||
postgresql_copy:
|
||||
community.general.postgresql_copy:
|
||||
copy_from: /tmp/data.csv
|
||||
dst: bar
|
||||
options:
|
||||
|
@ -123,19 +123,19 @@ EXAMPLES = r'''
|
|||
null: 'N'
|
||||
|
||||
- name: Copy data from acme table to file /tmp/data.txt in text format, TAB-separated
|
||||
postgresql_copy:
|
||||
community.general.postgresql_copy:
|
||||
src: acme
|
||||
copy_to: /tmp/data.txt
|
||||
|
||||
- name: Copy data from SELECT query to/tmp/data.csv in CSV format
|
||||
postgresql_copy:
|
||||
community.general.postgresql_copy:
|
||||
src: 'SELECT * FROM acme'
|
||||
copy_to: /tmp/data.csv
|
||||
options:
|
||||
format: csv
|
||||
|
||||
- name: Copy CSV data from my_table to gzip
|
||||
postgresql_copy:
|
||||
community.general.postgresql_copy:
|
||||
src: my_table
|
||||
copy_to: 'gzip > /tmp/data.csv.gz'
|
||||
program: yes
|
||||
|
@ -145,7 +145,7 @@ EXAMPLES = r'''
|
|||
- name: >
|
||||
Copy data from columns id, name of table bar to /tmp/data.txt.
|
||||
Output format is text, vertical-bar-separated, NULL as N
|
||||
postgresql_copy:
|
||||
community.general.postgresql_copy:
|
||||
src: bar
|
||||
columns:
|
||||
- id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue