-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
116 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
RoomigrantCompiler/src/main/java/dev/matrix/roomigrant/compiler/utils/Utils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dev.matrix.roomigrant.compiler.utils | ||
|
||
/** | ||
* @author matrixdev | ||
*/ | ||
|
||
fun String.asVarName() = "`$this`" |
9 changes: 9 additions & 0 deletions
9
RoomigrantLib/src/main/java/dev/matrix/roomigrant/model/IndexInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package dev.matrix.roomigrant.model | ||
|
||
/** | ||
* @author matrixdev | ||
*/ | ||
data class IndexInfo( | ||
val table: TableInfo, | ||
val name: String, | ||
val createSql: String) |
8 changes: 8 additions & 0 deletions
8
RoomigrantLib/src/main/java/dev/matrix/roomigrant/model/SchemeInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package dev.matrix.roomigrant.model | ||
|
||
/** | ||
* @author matrixdev | ||
*/ | ||
data class SchemeInfo( | ||
val version: Int, | ||
val tables: Map<String, TableInfo>) |
10 changes: 10 additions & 0 deletions
10
RoomigrantLib/src/main/java/dev/matrix/roomigrant/model/TableInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dev.matrix.roomigrant.model | ||
|
||
/** | ||
* @author matrixdev | ||
*/ | ||
data class TableInfo( | ||
val scheme: SchemeInfo, | ||
val name: String, | ||
val createSql: String, | ||
val indices: Map<String, IndexInfo>) |