# Viaduct

interface Viaduct(source)

A unified interface for configuring and executing queries against the Viaduct runtime

## Functions

execute
Link copied to clipboard
abstract fun execute(executionInput: ExecutionInput): ExecutionResult

Executes a query for the schema registry by using a Viaduct ExecutionInput.

executeAsync
Link copied to clipboard
abstract fun executeAsync(executionInput: ExecutionInput): CompletableFuture<ExecutionResult>

Executes a query for the schema registry by using a Viaduct ExecutionInput and wraps it on a CompletableFuture.

getAppliedScopes
Link copied to clipboard
abstract fun getAppliedScopes(schemaId: String): Set<String>?

This function is used to get the applied scopes for a given schemaId

getSchema
Link copied to clipboard
abstract fun getSchema(schemaId: String): ViaductSchema?

Temporary - Will be either private/or somewhere not exposed