31 lines
914 B
Kotlin
31 lines
914 B
Kotlin
package solutions.bitbadger.documents
|
|
|
|
import kotlinx.serialization.json.Json
|
|
import solutions.bitbadger.documents.common.AutoId
|
|
import solutions.bitbadger.documents.common.Dialect
|
|
import solutions.bitbadger.documents.common.DocumentException
|
|
import java.sql.Connection
|
|
import java.sql.DriverManager
|
|
import kotlin.jvm.Throws
|
|
|
|
object Configuration {
|
|
|
|
/**
|
|
* JSON serializer; replace to configure with non-default options
|
|
*
|
|
* The default sets `encodeDefaults` to `true` and `explicitNulls` to `false`; see
|
|
* https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md for all configuration options
|
|
*/
|
|
@JvmField
|
|
var json = Json {
|
|
encodeDefaults = true
|
|
explicitNulls = false
|
|
coerceInputValues = true
|
|
}
|
|
|
|
/** The JSON serializer to use for documents */
|
|
@JvmStatic
|
|
var serializer: DocumentSerializer = DocumentSerializerKotlin()
|
|
|
|
}
|