All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.github.jan.supabase.postgrest.request.PostgrestRequest.kt Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
@file:Suppress(
    "UndocumentedPublicClass",
    "UndocumentedPublicFunction",
    "UndocumentedPublicProperty"
)

package io.github.jan.supabase.postgrest.request

import io.github.jan.supabase.annotations.SupabaseInternal
import io.github.jan.supabase.postgrest.query.Returning
import io.ktor.http.Headers
import io.ktor.http.HttpMethod
import kotlinx.serialization.json.JsonElement

@SupabaseInternal
sealed interface PostgrestRequest {

    val body: JsonElement? get() = null
    val method: HttpMethod
    val urlParams: Map
    val headers: Headers get() = Headers.Empty
    val returning: Returning get() = Returning.Minimal
    val prefer: List
    val schema: String

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy