Revision 9698
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/db.sh | ||
---|---|---|
29 | 29 |
skip_table() # usage: create_table || table=... skip_table || return 0 |
30 | 30 |
{ what="table $table" already_exists_msg; } |
31 | 31 |
|
32 |
# usage: (set_large_table; to_file db_cmd...) || return |
|
33 |
alias set_large_table='declare del="${del-$(test "$limit"; exit2bool)}" |
|
34 |
echo_vars del' |
|
35 |
|
|
32 | 36 |
limit() # usage: query... $([prefix=$'| |\n'] limit) |
33 | 37 |
{ |
34 | 38 |
echo_func; kw_params prefix; local prefix="${prefix- |
Also available in: Unified diff
lib/sh/db.sh: added set_large_table alias, used to set to_file's $del flag based on $limit