scalikejdbc.DataSourceCloser.scala Maven / Gradle / Ivy
package scalikejdbc
/**
* Resource manager which closes a DataSource.
*/
trait DataSourceCloser extends AutoCloseable {
def close(): Unit
}
/**
* Default DataSourceCloser.
*/
case object DefaultDataSourceCloser extends DataSourceCloser {
def close(): Unit = throw new UnsupportedOperationException
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy