aboutsummaryrefslogtreecommitdiff
path: root/lib/some/database.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-10 00:20:05 +0100
committermms <git@sapka.me>2024-11-10 00:20:05 +0100
commit68d7eb07d88338f28c40a5ba68061a7f4e35f340 (patch)
tree7c1e0ab62ff2a2d9cd89ae1bd113759bb3077f13 /lib/some/database.rb
parent2b84ba48039818cf52f6acf3c06610212bf6f7c5 (diff)
feat: dsl
Diffstat (limited to 'lib/some/database.rb')
-rw-r--r--lib/some/database.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/some/database.rb b/lib/some/database.rb
index 5595a41..d481dd5 100644
--- a/lib/some/database.rb
+++ b/lib/some/database.rb
@@ -11,5 +11,9 @@ module Some
def query(query)
db.query(query)
end
+
+ def search_messages(query)
+ query(query).search_messages
+ end
end
end