mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
751f8b26ac
* dsl, state checks * define transaction sql commands in connection
23 lines
324 B
Crystal
23 lines
324 B
Crystal
module DB
|
|
class Error < Exception
|
|
end
|
|
|
|
class MappingException < Exception
|
|
end
|
|
|
|
class PoolTimeout < Error
|
|
end
|
|
|
|
class PoolRetryAttemptsExceeded < Error
|
|
end
|
|
|
|
class ConnectionLost < Error
|
|
getter connection : Connection
|
|
|
|
def initialize(@connection)
|
|
end
|
|
end
|
|
|
|
class Rollback < Exception
|
|
end
|
|
end
|