- Scala for Data Science
- Pascal Bugnion
- 97字
- 2021-07-23 14:33:09
Interacting with JDBC
JDBC is an API for connecting to SQL databases in Java. It remains the simplest way of connecting to SQL databases from Scala. Furthermore, the majority of higher-level abstractions for interacting with databases still use JDBC as a backend.
JDBC is not a library in itself. Rather, it exposes a set of interfaces to interact with databases. Relational database vendors then provide specific implementations of these interfaces.
Let's start by creating a build.sbt
file. We will declare a dependency on the MySQL JDBC connector:
scalaVersion := "2.11.7" libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.36"
推薦閱讀
- Extending Jenkins
- Kali Linux Web Penetration Testing Cookbook
- 摩登創客:與智能手機和平板電腦共舞
- Building a Game with Unity and Blender
- Rake Task Management Essentials
- Java從入門到精通(第4版)
- Java FX應用開發教程
- 深度學習:算法入門與Keras編程實踐
- HTML5入門經典
- Visual Basic程序設計
- Mastering Unity 2D Game Development(Second Edition)
- .NET 4.5 Parallel Extensions Cookbook
- 現代C:概念剖析和編程實踐
- Getting Started with Electronic Projects
- Mastering Python