Config

data class Config(var defaultSchema: String = "public", var propertyConversionMethod: PropertyConversionMethod = PropertyConversionMethod.CAMEL_CASE_TO_SNAKE_CASE, var requireValidSession: Boolean = false, var urlLengthLimit: Int = 8000, var timeout: Duration = 30.seconds, var maxRetries: Int = 3) : MainConfig, CustomSerializationConfig, AuthDependentPluginConfig(source)

Config for the Postgrest plugin

Parameters

timeout

Optional timeout for all requests. When set, requests will automatically abort after this duration to prevent indefinite hangs.

urlLengthLimit

Maximum URL length in characters before warnings/errors are triggered. Defaults to 8000.

defaultSchema

The default schema to use for the requests. Defaults to "public"

propertyConversionMethod

The method to use to convert the property names to the column names in PostgrestRequestBuilder and PostgrestUpdate. Defaults to PropertyConversionMethod.CAMEL_CASE_TO_SNAKE_CASE

maxRetries

Maximum number of retries for idempotent requests (GET, HEAD) that fail with transient errors (network errors, HTTP 503/520). Set to 0 to disable retries. Defaults to 3.

Constructors

Link copied to clipboard
constructor(defaultSchema: String = "public", propertyConversionMethod: PropertyConversionMethod = PropertyConversionMethod.CAMEL_CASE_TO_SNAKE_CASE, requireValidSession: Boolean = false, urlLengthLimit: Int = 8000, timeout: Duration = 30.seconds, maxRetries: Int = 3)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var loggingFactory: SupabaseLoggingProcessorFactory?
Link copied to clipboard
var logLevel: LogLevel?
Link copied to clipboard
Link copied to clipboard
open override var requireValidSession: Boolean
Link copied to clipboard
open override var serializer: SupabaseSerializer?
Link copied to clipboard
Link copied to clipboard