com.planetscale.planetscale-core-api 1.0-SNAPSHOT
Install 1/2: Add this to pom.xml:
Learn more about Maven or Gradle
<dependency>
<groupId>com.planetscale</groupId>
<artifactId>planetscale-core-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
Install 2/2: Run via command line
$ mvn install
About this package
This package provides API definitions for the Planetscale/Java connector. It is not meant for direct consumption
by end-users; see the impl-h2
package for a reference implementation, and the impl-mysqlj
package
for the main implementation used by the real driver.
This library uses as few dependencies as possible, and exposes its own interfaces and Service Loader-based
mechanism for resolving the appropriate implementation to use.
Then, these powers combine to form the actual driver, which is exported in a POM-only module called driver
.
Users install that package to automatically pull in the appropriate API and implementation.
graph TD
subgraph Planetscale
region1["Service LB (Region 1)"]
region2["Service LB (Region 2)"]
end
subgraph Planetscale/J
driver[Driver: `com.planetscale.Driver`] -- Uses --> api["API (this package)"]
api -- Loads --> impl[Implementation Modules]
impl -- Delegates to --> backing[Backing Driver]
backing --> region1
backing --> region2
end
subgraph User Code
consumer[JDBC: `jdbc:planetscale://...`] --> driver
end
At the moment, it is intentional that only one implementation may be loaded and used at any given time. Later, this may
become configurable, at which time this restriction will be lifted.
- H2: Designed for speed, and used for testing the adapter interface independent of MySQL.
- MySQL/J: The main implementation, which uses the official MySQL JDBC driver under the hood.
The interface to implement is PlanetscaleAdapter
, which is in charge of adapting JDBC to a driver implementation
of some kind, and has the chance to override various JDBC behaviors.
More abstract implementations are anticipated for the future.
Details
- elide-dev
- November 09, 2023
- 2 dependencies
- MIT License
Assets
- planetscale-core-api-1.0-20240609.055125-36.module.sha512
- planetscale-core-api-1.0-20240609.055125-36.module.sha256
- planetscale-core-api-1.0-20240609.055125-36.module.md5
- planetscale-core-api-1.0-20240609.055125-36.module.sha1
- planetscale-core-api-1.0-20240609.055125-36.module
- planetscale-core-api-1.0-20240609.055125-36.pom.sha512
- planetscale-core-api-1.0-20240609.055125-36.pom.sha256
- planetscale-core-api-1.0-20240609.055125-36.pom.md5
- planetscale-core-api-1.0-20240609.055125-36.pom.sha1
- planetscale-core-api-1.0-20240609.055125-36.pom
- planetscale-core-api-1.0-20240609.055125-36.jar.sha512
- planetscale-core-api-1.0-20240609.055125-36.jar.sha256
- planetscale-core-api-1.0-20240609.055125-36.jar.md5
- planetscale-core-api-1.0-20240609.055125-36.jar.sha1
- planetscale-core-api-1.0-20240609.055125-36.jar
- planetscale-core-api-1.0-20240520.184938-35.module.sha512
- planetscale-core-api-1.0-20240520.184938-35.module.sha256
- planetscale-core-api-1.0-20240520.184938-35.module.md5
- planetscale-core-api-1.0-20240520.184938-35.module.sha1
- planetscale-core-api-1.0-20240520.184938-35.module
- planetscale-core-api-1.0-20240520.184938-35.pom.sha512
- planetscale-core-api-1.0-20240520.184938-35.pom.sha256
- planetscale-core-api-1.0-20240520.184938-35.pom.md5
- planetscale-core-api-1.0-20240520.184938-35.pom.sha1
- planetscale-core-api-1.0-20240520.184938-35.pom
- planetscale-core-api-1.0-20240520.184938-35.jar.sha512
- planetscale-core-api-1.0-20240520.184938-35.jar.sha256
- planetscale-core-api-1.0-20240520.184938-35.jar.md5
- planetscale-core-api-1.0-20240520.184938-35.jar.sha1
- planetscale-core-api-1.0-20240520.184938-35.jar
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0
Recent versions
View all-
0.0.1-alpha-8
Dec 17, 2023 -
0.0.1-alpha-7
Nov 14, 2023 -
0.0.1-alpha-6
Nov 14, 2023 -
0.0.1-alpha-5
Nov 14, 2023 -
0.0.1-alpha-4
Nov 14, 2023