python (3.11.7)
    e
                         d  Z dS )c              #     K   d}|                                  }dV  d}|                    |          }g }|                                D ]\  }}}|dk    r:|                    d                                          }	dg}|d |	D             z
  }G|dk    rd	V  n|                    d
          rh|                    d          rI|sd}d
V  d                    |                    dd          |                    dd                    V  nd                    |          V  |                    dd          }
|                    d                    |
                    }d |                                D             }d                    |
d                    d |D                                 }|                    |          }
|
D ]}d                    |d                   V   d}|                    |          }|                                D ]\  }}}d                    |          V  |rdV  |D ]}d                    |          V  dV  dS )a/  
    Returns an iterator to the dump of the database in an SQL text format.
    Used to produce an SQL dump of the database.  Useful to save an in-memory
    database for later restoration.  This function should not be called
    directly but instead called from the Connection method, iterdump().
    FzBEGIN TRANSACTION;z
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" == 'table'
            ORDER BY "name"
        sqlite_sequencez SELECT * FROM "sqlite_sequence";zDELETE FROM "sqlite_sequence"c                 8    g | ]}d |d          d|d          dS )z&INSERT INTO "sqlite_sequence" VALUES('