DuckDB/SQLMaker.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DuckDB/Diff.pm ↑ Summary
1 package DBIO::DuckDB::SQLMaker;
2 # ABSTRACT: DuckDB-specific SQL generation for DBIO
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use base qw( DBIO::SQLMaker );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10 # DuckDB does not support SELECT ... FOR UPDATE in its SQL dialect.
11 # When using the Quack extension, writes are serialized server-side, but
12 # FOR UPDATE remains unsupported in DuckDB's query language regardless.
13 sub _lock_select () { '' }
14  
15  
16 1 1;
17  
18 __END__
19  
20 =pod
21  
22 =encoding UTF-8
23  
24 =head1 NAME
25  
26 DBIO::DuckDB::SQLMaker - DuckDB-specific SQL generation for DBIO
27  
28 =head1 VERSION
29  
30 version 0.900001
31  
32 =head1 DESCRIPTION
33  
34 DuckDB-specific subclass of L<DBIO::SQLMaker>. DuckDB's SQL dialect is
35 PostgreSQL-flavored: double-quoted identifiers, standard C<LIMIT ? OFFSET ?>,
36 C<RETURNING>, C<::> casts, C<ILIKE>, rich types. This class just turns off
37 the bits DuckDB doesn't do:
38  
39 =over 4
40  
41 =item * C<SELECT ... FOR UPDATE> is not supported by DuckDB -- disabled.
42  
43 =back
44  
45 All other SQL generation is inherited unchanged from L<DBIO::SQLMaker>,
46 which already defaults to C<LIMIT ? OFFSET ?> pagination.
47  
48 This class is set as the C<sql_maker_class> by L<DBIO::DuckDB::Storage> and
49 is not normally instantiated directly.
50  
51 =seealso
52  
53 =over
54  
55 =item * L<DBIO::SQLMaker> - Base SQL generation class
56  
57 =item * L<DBIO::DuckDB::Storage> - Storage driver that uses this SQL maker
58  
59 =item * L<DBIO::DuckDB> - Top-level DuckDB schema component
60  
61 =back
62  
63 =head1 AUTHOR
64  
65 DBIO Authors
66  
67 =head1 COPYRIGHT AND LICENSE
68  
69 Copyright (C) 2026 DBIO Authors
70  
71 This is free software; you can redistribute it and/or modify it under
72 the same terms as the Perl 5 programming language system itself.
73  
74 =cut
« DuckDB/Diff.pm ↑ Summary