case class PostgresConnection(config: PostgresConnectionConfig) extends JdbcConnection[PostgresConnectionConfig] with Product with Serializable
Connection to PostgresSQL database
- config
Connection configuration
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PostgresConnection
- Serializable
- Serializable
- Product
- Equals
- JdbcConnection
- DQConnection
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
PostgresConnection(config: PostgresConnectionConfig)
- config
Connection configuration
Type Members
-
type
SourceType = TableSourceConfig
- Definition Classes
- JdbcConnection → DQConnection
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkConnection: Result[Unit]
Checks connection.
Checks connection.
- returns
Nothing or error message in case if connection is not ready.
- Definition Classes
- JdbcConnection → DQConnection
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
config: PostgresConnectionConfig
- Definition Classes
- PostgresConnection → JdbcConnection
-
val
connectionUrl: String
- Attributes
- protected
- Definition Classes
- PostgresConnection → JdbcConnection
-
val
currentSchema: Option[String]
- Attributes
- protected
- Definition Classes
- PostgresConnection → JdbcConnection
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getProperties: Properties
Gets basic JDBC connection properties
Gets basic JDBC connection properties
- returns
Connection properties
- Attributes
- protected
- Definition Classes
- JdbcConnection
-
val
id: String
- Definition Classes
- PostgresConnection → DQConnection
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
jdbcDriver: String
- Attributes
- protected
- Definition Classes
- PostgresConnection → JdbcConnection
-
def
loadDataFrame(sourceConfig: SourceType)(implicit settings: AppSettings, spark: SparkSession, schemas: Map[String, SourceSchema]): DataFrame
Loads external data into dataframe given a source configuration
Loads external data into dataframe given a source configuration
- sourceConfig
Source configuration
- settings
Implicit application settings object
- spark
Implicit spark session object
- schemas
Implicit Map of all explicitly defined schemas (schemaId -> SourceSchema)
- returns
Spark DataFrame
- Definition Classes
- JdbcConnection → DQConnection
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
sparkParams: Seq[String]
- Attributes
- protected
- Definition Classes
- PostgresConnection → DQConnection
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()