{
    "content": [
        {
            "type": "text",
            "text": "# Data::Stream::Bulk::DBI (perldoc)\n\n## NAME\n\nData::Stream::Bulk::DBI - N-at-a-time iteration of DBI statement results.\n\n## SYNOPSIS\n\nuse Data::Stream::Bulk::DBI;\nmy $sth = $dbh->prepare(\"SELECT hate FROM sql\"); # very big resultset\n$sth->execute;\nreturn Data::Stream::Bulk::DBI->new(\nsth => $sth,\nmaxrows => $n, # how many at a time\nslice => [ ... ], # if you want to pass the first param to fetchallarrayref\n);\n\n## DESCRIPTION\n\nThis implementation of Data::Stream::Bulk api works with DBI statement handles, using\n\"fetchallarrayref\" in DBI.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **ATTRIBUTES**\n- **METHODS**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Data::Stream::Bulk::DBI",
        "section": "",
        "mode": "perldoc",
        "summary": "Data::Stream::Bulk::DBI - N-at-a-time iteration of DBI statement results.",
        "synopsis": "use Data::Stream::Bulk::DBI;\nmy $sth = $dbh->prepare(\"SELECT hate FROM sql\"); # very big resultset\n$sth->execute;\nreturn Data::Stream::Bulk::DBI->new(\nsth => $sth,\nmaxrows => $n, # how many at a time\nslice => [ ... ], # if you want to pass the first param to fetchallarrayref\n);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "ATTRIBUTES",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Data::Stream::Bulk::DBI - N-at-a-time iteration of DBI statement results.\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 0.11\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Data::Stream::Bulk::DBI;\n\nmy $sth = $dbh->prepare(\"SELECT hate FROM sql\"); # very big resultset\n$sth->execute;\n\nreturn Data::Stream::Bulk::DBI->new(\nsth => $sth,\nmaxrows => $n, # how many at a time\nslice => [ ... ], # if you want to pass the first param to fetchallarrayref\n);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This implementation of Data::Stream::Bulk api works with DBI statement handles, using\n\"fetchallarrayref\" in DBI.\n\nIt fetches \"maxrows\" at a time (defaults to 500).\n",
                "subsections": []
            },
            "ATTRIBUTES": {
                "content": "sth The statement handle to call \"fetchallarrayref\" on.\n\nslice\nPassed verbatim as the first param to \"fetchallarrayref\". Should usually be \"undef\",\nprovided for completetness.\n\nmaxrows\nThe second param to \"fetchallarrayref\". Controls the size of each buffer.\n\nDefaults to 500.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "getmore\nSee Data::Stream::Bulk::DoneFlag.\n\nCalls \"fetchallarrayref\" to get the next chunk of rows.\n\nall Calls \"fetchallarrayref\" to get the raminder of the data (without specifying \"maxrows\").\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Yuval Kogman <nothingmuch@woobling.org>\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "This software is copyright (c) 2012 by Yuval Kogman.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
                "subsections": []
            }
        }
    }
}