Class: Ansible::Ruby::Modules::Mysql_db

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb

Overview

Add or remove MySQL databases from a remote host.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#collationObject?

Returns Collation mode (sorting). This only applies to new table/databases and does not update existing ones, this is a limitation of MySQL.

Returns:

  • (Object, nil)

    Collation mode (sorting). This only applies to new table/databases and does not update existing ones, this is a limitation of MySQL.



19
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb', line 19

attribute :collation

#encodingObject?

Returns Encoding mode to use, examples include C(utf8) or C(latin1_swedish_ci).

Returns:

  • (Object, nil)

    Encoding mode to use, examples include C(utf8) or C(latin1_swedish_ci)



22
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb', line 22

attribute :encoding

#nameString

Returns name of the database to add or remove,name=all May only be provided if I(state) is C(dump) or C(import).,if name=all Works like –all-databases option for mysqldump (Added in 2.0).

Returns:

  • (String)

    name of the database to add or remove,name=all May only be provided if I(state) is C(dump) or C(import).,if name=all Works like –all-databases option for mysqldump (Added in 2.0)



11
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb', line 11

attribute :name

#quickBoolean?

Returns Option used for dumping large tables.

Returns:

  • (Boolean, nil)

    Option used for dumping large tables



33
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb', line 33

attribute :quick

#single_transactionBoolean?

Returns Execute the dump in a single transaction.

Returns:

  • (Boolean, nil)

    Execute the dump in a single transaction



29
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb', line 29

attribute :single_transaction

#state:present, ...

Returns The database state.

Returns:

  • (:present, :absent, :dump, :import, nil)

    The database state



15
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb', line 15

attribute :state

#targetString?

Returns Location, on the remote host, of the dump file to read from or write to. Uncompressed SQL files (C(.sql)) as well as bzip2 (C(.bz2)), gzip (C(.gz)) and xz (Added in 2.0) compressed files are supported.

Returns:

  • (String, nil)

    Location, on the remote host, of the dump file to read from or write to. Uncompressed SQL files (C(.sql)) as well as bzip2 (C(.bz2)), gzip (C(.gz)) and xz (Added in 2.0) compressed files are supported.



25
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb', line 25

attribute :target