mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
make Connection#prepared_statements? readonly
This commit is contained in:
parent
d55b088216
commit
4721ecbf6b
4 changed files with 8 additions and 14 deletions
|
@ -25,7 +25,7 @@ module DB
|
|||
# :nodoc:
|
||||
getter database
|
||||
@statements_cache = StringKeyCache(Statement).new
|
||||
property? prepared_statements : Bool
|
||||
getter? prepared_statements : Bool
|
||||
|
||||
def initialize(@database : Database)
|
||||
@prepared_statements = @database.prepared_statements?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue