def to_sql(self, connection, grammar):
        self._add_implied_commands()

        statements = []

        for command in self._commands:
            method = 'compile_%s' % command.name

            if hasattr(grammar, method):
                sql = getattr(grammar, method)(self, command, connection)
                if sql is not None:
                    if isinstance(sql, list):
                        statements += sql
                    else:
                        statements.append(sql)

        return statements
Attaches the disk to a VM.
dataset/ETHPy150Open sdispater/orator/orator/schema/blueprint.py/Blueprint.to_sql--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/disk.py/BaseDisk.Attach