Closed
Description
I'm adding some simple sql statements for database management, but I'm not seeing them generate anywhere that I can use them.
getUserVersion:
PRAGMA user_version;
setUserVersion:
PRAGMA user_version=?1;
A workaround that is a little ugly:
db.getConnection()
.prepareStatement("PRAGMA user_version;", SqlPreparedStatement.Type.EXECUTE, 0)
.executeQuery()
.getLong(0)!!
db.getConnection()
.prepareStatement(
"PRAGMA user_version=${QueryWrapper.Schema.version};",
SqlPreparedStatement.Type.EXECUTE,
0
)
.execute()
Metadata
Metadata
Assignees
Labels
No labels