object JdbcDialects
Registry of dialects that apply to every new jdbc org.apache.spark.sql.DataFrame
.
If multiple matching dialects are registered then all matching ones will be tried in reverse order. A user-added dialect will thus be applied first, overwriting the defaults.
- Annotations
- @DeveloperApi()
- Source
- JdbcDialects.scala
- Note
All new dialects are applied to new jdbc DataFrames only. Make sure to register your dialects first.
- Alphabetic
- By Inheritance
- JdbcDialects
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
get(url: String): JdbcDialect
Fetch the JdbcDialect class corresponding to a given database url.
-
def
registerDialect(dialect: JdbcDialect): Unit
Register a dialect for use on all new matching jdbc
org.apache.spark.sql.DataFrame
.Register a dialect for use on all new matching jdbc
org.apache.spark.sql.DataFrame
. Reading an existing dialect will cause a move-to-front.- dialect
The new dialect.
-
def
unregisterDialect(dialect: JdbcDialect): Unit
Unregister a dialect.
Unregister a dialect. Does nothing if the dialect is not registered.
- dialect
The jdbc dialect.