FU::Pg: Rename q() and Q() to sql() and SQL()
Because this easily confuses syntax highlighters and some humans with the q// string syntax. Also for consistency with the 'fu->sql()' aliases. The old names are still available as alias.
This commit is contained in:
parent
876613d03f
commit
8140fefbca
10 changed files with 206 additions and 200 deletions
8
FU.pm
8
FU.pm
|
|
@ -646,8 +646,8 @@ sub db {
|
|||
};
|
||||
}
|
||||
|
||||
sub sql { shift->db->q(@_) }
|
||||
sub SQL { shift->db->Q(@_) }
|
||||
sub sql { shift->db->sql(@_) }
|
||||
sub SQL { shift->db->SQL(@_) }
|
||||
|
||||
sub _fmt_section($s) { $s =~ s/^\s*/ /r =~ s/\s+$//r =~ s/\n/\n /rg }
|
||||
|
||||
|
|
@ -1306,11 +1306,11 @@ has successfully been processed, or rolled back if there was an error.
|
|||
|
||||
=item fu->sql($query, @params)
|
||||
|
||||
Convenient short-hand for C<< fu->db->q($query, @params) >>.
|
||||
Convenient short-hand for C<< fu->db->sql($query, @params) >>.
|
||||
|
||||
=item fu->SQL(@args)
|
||||
|
||||
Convenient short-hand for C<< fu->db->Q(@args) >>.
|
||||
Convenient short-hand for C<< fu->db->SQL(@args) >>.
|
||||
|
||||
=item fu->log_verbose($message)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue