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: //usr/lib/google-cloud-sdk/lib/surface/sql/export/__pycache__/csv.cpython-312.pyc
�

��
��,�dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZejejjejjejj �Gd	�d
ej"��Zy)z�Exports data from a Cloud SQL instance to a CSV file.

Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
plain text file with one line per row and comma-separated fields.
�)�absolute_import)�division)�unicode_literals)�api_util)�base)�export_util)�flagsc�&�eZdZdZed��Zd�Zy)�Csvz�Exports data from a Cloud SQL instance to a CSV file.

  Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
  plain text file with one line per row and comma-separated fields.
  c�(�tj|�tj|�|j	ddd��tj
|�tj|�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--queryTz�A SQL SELECT query (e.g., SELECT * FROM table) that specifies the data to export. WARNING: While in-transit, the query might be processed in intermediate locations other than the location of the target instance.)�required�helpN)	r�AddBaseExportFlagsr	�AddOffloadArgument�add_argument�AddQuoteArgument�AddEscapeArgument�AddFieldsDelimiterArgument�AddLinesDelimiterArgument)�parsers �lib/surface/sql/export/csv.py�ArgszCsv.Args(sx���"�"�6�*�	���V�$�
�����'��(�
���6�"�	���F�#�	�$�$�V�,�	�#�#�F�+�c�t�tjtj�}tj||�S)z2Runs the command to export the Cloud SQL instance.)r�	SqlClient�API_VERSION_DEFAULTr�RunCsvExportCommand)�self�args�clients   r�RunzCsv.Run?s+��
�
�
�� <� <�
=�F��*�*�4��8�8rN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr!�rrrrs ����,��,�,9rrN)r%�
__future__rrr�googlecloudsdk.api_lib.sqlr�googlecloudsdk.callioper�googlecloudsdk.command_lib.sqlrr	�
ReleaseTracks�ReleaseTrack�GA�BETA�ALPHA�Commandrr'rr�<module>r2sx���'��'�/�(�6�0�����D�%�%�(�(�$�*;�*;�*@�*@��%�%�+�+�-�!9�$�,�,�!9�-�!9r