Package dev.gmitch215.bytebox.binding
Interface Hyperdrive
- All Superinterfaces:
org.teavm.jso.JSObject
public interface Hyperdrive
extends org.teavm.jso.JSObject
A Hyperdrive configuration. Declared with
hyperdrive(), named HYPERDRIVE by
default.
A connection pooler in front of a Postgres or MySQL database, reached with an ordinary driver
over cloudflare:sockets. This binding hands out the connection details; it does not speak
the wire protocol itself, so a driver still has to.
getConnectionString() points at Hyperdrive rather than at the database, which is what
makes the pooling and the query cache apply. Connecting to the origin directly skips both.
- Since:
- 1.0.0
-
Method Summary
Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
getConnectionString
String getConnectionString()Returns the connection string to hand a driver.- Returns:
- the connection string to hand a driver
-
getHost
String getHost()Returns the host to connect to.- Returns:
- the host to connect to
-
getPort
int getPort()Returns the port to connect to.- Returns:
- the port to connect to
-
getUser
String getUser()Returns the user to authenticate as.- Returns:
- the user to authenticate as
-
getPassword
String getPassword()Returns the password to authenticate with.- Returns:
- the password to authenticate with
-
getDatabase
String getDatabase()Returns the database name.- Returns:
- the database name
-