public function export($schemaName = null)
    {
        $dump = [];
        $sql  =
            "SELECT type, name, sql
            FROM sqlite_master
            WHERE type != 'index' AND name != 'sqlite_sequence'
            ORDER BY type";
        
        $rows = $this->connection->selectAll($sql);
        foreach ($rows as $row) {
            $dump[] = preg_replace('/\v/', ' ', $row['sql']);
        }
        
        return implode(";\n\n", $dump) . ";\n";
    }