| 1 |
Execution example:: |
| 2 |
|
| 3 |
plugin_register functions/string |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
select \ |
| 6 |
--table Memos \ |
| 7 |
--filter 'in_records(Conditions, \ |
| 8 |
user, "@", "user_pattern", \ |
| 9 |
tag, "==", "tag", \ |
| 10 |
string_length(_key), "<=", "max_length")' \ |
| 11 |
--sort_by _id \ |
| 12 |
--output_columns _key,user,tag |
| 13 |
# [ |
| 14 |
# [ |
| 15 |
# 0, |
| 16 |
# 1337566253.89858, |
| 17 |
# 0.000355720520019531 |
| 18 |
# ], |
| 19 |
# [ |
| 20 |
# [ |
| 21 |
# [ |
| 22 |
# 2 |
| 23 |
# ], |
| 24 |
# [ |
| 25 |
# [ |
| 26 |
# "_key", |
| 27 |
# "ShortText" |
| 28 |
# ], |
| 29 |
# [ |
| 30 |
# "user", |
| 31 |
# "ShortText" |
| 32 |
# ], |
| 33 |
# [ |
| 34 |
# "tag", |
| 35 |
# "Tags" |
| 36 |
# ] |
| 37 |
# ], |
| 38 |
# [ |
| 39 |
# "Groonga is fast", |
| 40 |
# "alice", |
| 41 |
# "groonga" |
| 42 |
# ], |
| 43 |
# [ |
| 44 |
# "Droonga is fast", |
| 45 |
# "david", |
| 46 |
# "droonga" |
| 47 |
# ] |
| 48 |
# ] |
| 49 |
# ] |
| 50 |
# ] |