Skip to content

Commit

Permalink
compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rodireich committed Jan 15, 2025
1 parent 7bb3bfd commit e3295bb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import io.airbyte.cdk.AirbyteSourceRunner
object MyDbSource {
@JvmStatic
fun main(args: Array<String>) {
AirbyteSoureRunner.run(*args)
AirbyteSourceRunner.run(*args)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,28 @@ package io.airbyte.integrations.source.mydb
import io.airbyte.cdk.command.ConfigurationSpecificationSupplier
import io.airbyte.cdk.command.JdbcSourceConfiguration
import io.airbyte.cdk.command.SourceConfigurationFactory
import io.airbyte.cdk.ssh.SshConnectionOptions
import io.airbyte.cdk.ssh.SshTunnelMethodConfiguration
import io.micronaut.context.annotation.Factory
import jakarta.inject.Singleton
import java.time.Duration
import kotlin.time.toDuration

data class MyDbSourceConfiguration(
override val realHost: String,
override val realPort: Int,
override val jdbcProperties: Map<String, String>,
override val jdbcUrlFmt: String = "",
override val namespaces: Set<String> = setOf<String>(),
override val global: Boolean = false,
override val maxSnapshotReadDuration: Duration? = null,
override val checkpointTargetInterval: Duration = Duration.ZERO,
override val maxConcurrency: Int = 1,
override val resourceAcquisitionHeartbeat: Duration = Duration.ZERO,
override val sshTunnel: SshTunnelMethodConfiguration? = null,
override val sshConnectionOptions: SshConnectionOptions = SshConnectionOptions(kotlin.time.Duration.ZERO,
kotlin.time.Duration.ZERO, kotlin.time.Duration.ZERO
),
) : JdbcSourceConfiguration {

@Factory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
/* Copyright (c) 2024 Airbyte, Inc., all rights reserved. */
package io.airbyte.integrations.source.mydb

import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonPropertyDescription
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaDefault
import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaInject
import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaTitle
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings
import io.airbyte.cdk.command.CONNECTOR_CONFIG_PREFIX
import io.airbyte.cdk.command.ConfigurationSpecification
import io.micronaut.context.annotation.ConfigurationProperties
import jakarta.inject.Singleton

@JsonSchemaTitle("MyDb Source Spec")
@JsonPropertyOrder(
value =
Expand Down

0 comments on commit e3295bb

Please sign in to comment.