Naming Strategy
KronosNamingStrategy is an interface used to define the conversion strategy for table names and column names. @status:success UPDATED
Member Functions:
1. db2k(name) Database Name -> Kotlin Name
Convert database table/column names to kotlin class/property names.
Function Declaration
fun db2k(name: String): StringUsage Example
val kName = db2k("user_info")Reception Parameters
| name | description | type | default |
|---|---|---|---|
*name | Database table/column names | String | - |
Return
String- kotlin class name/property name
2. k2db(name) Kotlin Name -> Database Name
Convert Kotlin class names/property names to database table/column names.
Function Declaration
fun k2db(name: String): StringUsage Example
val dbName = k2db("UserInfo")Reception Parameters
| name | description | type | default |
|---|---|---|---|
*name | Kotlin class name/property name | String | - |
Return
String- Database table/column names