Rebo is a database writer.
current = :1.0.1531-SNAPSHOT
[1] = rebo main release
[2] = rebo bug fixes
[1531] = kotlin version i.e 1.5.31
Have a CrossPlatform database
By extension making Rebo currently JvmOnly
But looking for true multiplatform solutions with native.
BuildSrc // Easy to use gradle scripts
Bulding Do the same for the other local dependencies strings and collection extensions
https://github.com/BreimerR/lazy
https://github.com/BreimerR/languages.git
https://github.com/BreimerR/strings
https://github.com/BreimerR/BuildSrc.gitClone and build above repos
Post repos to mavenLocal usingbuild publishMavenLocal
/ runpublishMavenLocal
from your IDE
Maven Posting
Maven Postings haven't been done yet But will be in the next release.
- Generate
- Exposed Tables
- Exposed Daos
- Data class extension functions
- Generate database migration Base code
- Generate For Exposed database
- ...
- Clone repo
git clone https://github.com/BreimerR/Rebo.git
- Build repo and publish to maven local
cd Rebo
build publishMavenLocal
- Add mavenLocal to your repositories
repositories {
// ...
mavenLocal()
}
- Add dependencies to your project
dependencies{
add("kspJvm","libetal.kotlinx.ksp.plugins:rebo:1.0.1531-SNAPSHOT")
}
@Entity
data class User(
@Column
val name: String,
@Column
@PrimaryKey
val id: Int = 0
)
@Entity
data class Account(
@Column
@ForeignKey
val user: User,
@Column
@PrimaryKey
val id: Int = 0
)
This will work the same way. Would lack some arguments used in @ForeignKey though
@Entity
data class Account(
@Column
val user: User,
@Column
@PrimaryKey
val id: Int = 0
)