Package dev.gmitch215.bytebox.gradle
Class Bindings.D1Spec
java.lang.Object
dev.gmitch215.bytebox.gradle.Bindings.D1Spec
- Enclosing class:
Bindings
Identifiers a D1 database can carry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the database id.Returns the database's own name.Returns where the migrations live.voidsetDatabaseId(String databaseId) voidsetDatabaseName(String databaseName) voidsetMigrationsDir(String migrationsDir)
-
Constructor Details
-
D1Spec
public D1Spec()
-
-
Method Details
-
getDatabaseName
Returns the database's own name.- Returns:
- the database's own name
-
setDatabaseName
- Parameters:
databaseName- the database's own name
-
getDatabaseId
Returns the database id.- Returns:
- the database id
-
setDatabaseId
- Parameters:
databaseId- the database id
-
getMigrationsDir
Returns where the migrations live.- Returns:
- where the migrations live
-
setMigrationsDir
- Parameters:
migrationsDir- where the migrations live
-