mysql modules: fix examples to use FQCN (#3)

This commit is contained in:
Andrew Klychkov 2020-07-13 12:52:49 +03:00 committed by GitHub
parent 4a3cfa6a32
commit c255d7ece2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 53 deletions

View file

@ -53,12 +53,12 @@ extends_documentation_fragment:
EXAMPLES = r'''
- name: Simple select query to acme db
mysql_query:
community.mysql.mysql_query:
login_db: acme
query: SELECT * FROM orders
- name: Select query to db acme with positional arguments
mysql_query:
community.mysql.mysql_query:
login_db: acme
query: SELECT * FROM acme WHERE id = %s AND story = %s
positional_args:
@ -66,7 +66,7 @@ EXAMPLES = r'''
- test
- name: Select query to test_db with named_args
mysql_query:
community.mysql.mysql_query:
login_db: test_db
query: SELECT * FROM test WHERE id = %(id_val)s AND story = %(story_val)s
named_args:
@ -74,7 +74,7 @@ EXAMPLES = r'''
story_val: test
- name: Run several insert queries against db test_db in single transaction
mysql_query:
community.mysql.mysql_query:
login_db: test_db
query:
- INSERT INTO articles (id, story) VALUES (2, 'my_long_story')