mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
query_methods.cr: Small typo fix in docs (#76)
This commit is contained in:
parent
f70f251849
commit
3820978820
1 changed files with 3 additions and 0 deletions
|
@ -264,7 +264,10 @@ module DB
|
|||
end
|
||||
|
||||
# Performs the `query` and returns a single scalar value
|
||||
#
|
||||
# ```
|
||||
# puts db.scalar("SELECT MAX(name)").as(String) # => (a String)
|
||||
# ```
|
||||
def scalar(query, *args)
|
||||
build(query).scalar(*args)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue