FU: Support multipart file uploads + some doc fixes
API is not super convenient and implementation is lousy, but uploading files is not a super common operation so that should be fine. At least it supports large files with only a single in-memory copy.
This commit is contained in:
parent
e5755ddd80
commit
17176738a0
6 changed files with 280 additions and 13 deletions
|
|
@ -356,12 +356,12 @@ values. This function results in different SQL depending on the C<in_style>
|
|||
option given to C<compile()>. The default C<'dbi'> style passes each value as a
|
||||
bind parameter:
|
||||
|
||||
SQL 'WHERE id', IN([1, 2, 3, 4]);
|
||||
SQL 'WHERE id', IN [1, 2, 3, 4];
|
||||
# 'WHERE id IN(?, ?, ?, ?)', parameters: 1, 2, 3, 4
|
||||
|
||||
The C<'pg'> style passes the entire array as a single bind parameter instead:
|
||||
|
||||
SQL 'WHERE id', IN([1, 2, 3, 4]);
|
||||
SQL 'WHERE id', IN [1, 2, 3, 4];
|
||||
# 'WHERE id = ANY(?)', parameter: [1, 2, 3, 4]
|
||||
|
||||
The C<'pg'> style allows for more efficient re-use of cached prepared
|
||||
|
|
@ -372,7 +372,7 @@ with L<DBD::Pg> or L<Pg::PQ>.
|
|||
|
||||
Can be used in the C<$hashref> versions of C<AND>, C<OR> and C<WHERE> as well:
|
||||
|
||||
WHERE { id => IN([1, 2]) }
|
||||
WHERE { id => IN [1, 2] }
|
||||
# 'WHERE id IN(?, ?)'
|
||||
|
||||
=back
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue