Alien-DBD-SQLite-BundledExtensions
view release on metacpan or search on metacpan
lib/DBD/SQLite/BundledExtensions.pm view on Meta::CPAN
SELECT * FROM generate_series WHERE start=0 AND stop=100;
SELECT * FROM generate_series(20) LIMIT 10;
SELECT * FROM generate_series WHERE start=20 LIMIT 10;
The generate_series virtual table implementation leaves the xCreate method
set to NULL. This means that it is not possible to do a CREATE VIRTUAL
TABLE command with "generate_series" as the USING argument. Instead, there
is a single generate_series virtual table that is always available without
having to be created first.
The xBestIndex method looks for equality constraints against the hidden
start, stop, and step columns, and if present, it uses those constraints
to bound the sequence of generated values. If the equality constraints
are missing, it uses 0 for start, 4294967295 for stop, and 1 for step.
xBestIndex returns a small cost when both start and stop are available,
and a very large cost if either start or stop are unavailable. This
encourages the query planner to order joins such that the bounds of the
series are well-defined.
=item spellfix
( run in 0.410 second using v1.01-cache-2.11-cpan-64827b87656 )