fun setReadOnly(readOnly: Boolean): Unit
Set whether to optimize as read-only transaction. Default is "false".