<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iox</author_name>
  <author_url>https://blog.hatena.ne.jp/iox/</author_url>
  <blog_title>高知ではたらくひとのブログ</blog_title>
  <blog_url>https://iox.hatenablog.com/</blog_url>
  <categories>
    <anon>Perl</anon>
    <anon>CGI</anon>
  </categories>
  <description>現在、DBIx::ClassとTemplate Toolkitを勉強しているところですが、ページングの処理が驚くほど簡単に書けるので自分用のメモを残しておきます。 CGI側でresultsetオブジェクトに対しpager()をコールすることで、Data::Pageオブジェクトを取得できます。 my $q = CGI-&gt;new; my $schema = App::Schema-&gt;connect; my $iterator = $schema-&gt;resultset('Comment')-&gt;search({}, {rows =&gt; 5}); # 1ページ辺りの行数は5 my $page = $q-&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiox.hatenablog.com%2Fentry%2F20070618%2F1182158941&quot; title=&quot;DBIx::Classのページング処理 - 高知ではたらくひとのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-06-18 18:29:01</published>
  <title>DBIx::Classのページング処理</title>
  <type>rich</type>
  <url>https://iox.hatenablog.com/entry/20070618/1182158941</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
