Skip to content

Implement AutoClosable interface in database objects #115

@kaklakariada

Description

@kaklakariada

Database objects like Schema already implement drop() method to delete them. To simplify usage, we should let the DatabaseObject interface extend AutoClosable, so that you can use them in try-with-resources blocks. Then they are automatically deleted without explicitly dropping them.

Implementation could be done with minimal effort by adding void close() to DatabaseObject with a default implementation that just calls drop().

Metadata

Metadata

Labels

featureProduct feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions