HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/sql/import/__pycache__/sql.cpython-312.pyc
�

��N��R�dZddlmZddlmZddlmZddlZddlmZddlm	Z	ddl
mZdd	l
mZe	je	jje	jj e	jj"�e	j$Gd
�de	j&���Zy)z�Imports data into a Cloud SQL instance from a SQL dump file.

Imports data into a Cloud SQL instance from a SQL dump file in Google Cloud
Storage.
�)�absolute_import)�division)�unicode_literalsN)�api_util)�base)�flags)�import_utilc�p�eZdZdZej
d�ej
d�d�Zed��Zd�Z	y)�Sqlz<Imports data into a Cloud SQL instance from a SQL dump file.a>          {command} imports data into a Cloud SQL instance from a SQL dump file
          in Google Cloud Storage.

          NOTE: Certain roles and permissions are required to import data into
          Google Cloud SQL. For more information on importing data into Google
          Cloud SQL see [Import a SQL dump file](https://cloud.google.com/sql/docs/mysql/import-export/import-export-sql#gcloud_1).

          For detailed help on importing data into Cloud SQL, refer to this
          guide: https://cloud.google.com/sql/docs/mysql/import-export/importing
          a          To import data from a SQL dump file into a database, `testdb`, on the
          specified Cloud SQL instance `test-instance-1`, run:

            $  gcloud sql import sql test-instance-1 gs://test-bucket/test-file.sql.gz --database=testdb
          )�DESCRIPTION�EXAMPLESc�*�tj|d��tj|tj�tj
|d��tj|d��tj|�tj|�y)z�Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    z
MySQL dump)�filetype�import)�	operationN)	r	�AddBaseImportFlagsr�AddDatabase�!DEFAULT_DATABASE_IMPORT_HELP_TEXT�AddParallelArgument�AddThreadsArgument�AddCleanImportArgument�AddIfExistsImportsArgument)�parsers �lib/surface/sql/import/sql.py�ArgszSql.Args=sf���"�"�6�L�A�	���f�e�E�E�F�	���f��9�	���V�x�8�	� � ��(�	�$�$�V�,�c�t�tjtj�}tj||�S)z7Runs the command to import into the Cloud SQL instance.)r�	SqlClient�API_VERSION_DEFAULTr	�RunSqlImportCommand)�self�args�clients   r�RunzSql.RunMs+��
�
�
�� <� <�
=�F��*�*�4��8�8rN)
�__name__�
__module__�__qualname__�__doc__�textwrap�dedent�
detailed_help�staticmethodrr$�rrrr!sR��E��(�/�/�
�
��(�/�/����-�,�
-��
-�9rr)r(�
__future__rrrr)�googlecloudsdk.api_lib.sqlr�googlecloudsdk.callioper�googlecloudsdk.command_lib.sqlrr	�
ReleaseTracks�ReleaseTrack�GA�BETA�ALPHA�DefaultUniverseOnly�Commandrr-rr�<module>r9s����'��'��/�(�0�6�����D�%�%�(�(�$�*;�*;�*@�*@��%�%�+�+�-����,9�$�,�,�,9��-�,9r