OHRefreshOption

Objective-C

enum OHRefreshOption : NSUInteger {}

Swift

enum RefreshOption : UInt

Refresh options.

  • Undocumented

    Declaration

    Objective-C

    OHRefreshOptionNone = 0

    Swift

    case none = 0
  • Refresh the grant tables, like FLUSH PRIVILEGES.

    Declaration

    Objective-C

    OHRefreshOptionGrant = 1

    Swift

    case grant = 1
  • Flush the logs, like FLUSH LOGS.

    Declaration

    Objective-C

    OHRefreshOptionLog = 2

    Swift

    case log = 2
  • Flush the table cache, like FLUSH TABLES.

    Declaration

    Objective-C

    OHRefreshOptionTables = 4

    Swift

    case tables = 4
  • Flush the host cache, like FLUSH HOSTS.

    Declaration

    Objective-C

    OHRefreshOptionHosts = 8

    Swift

    case hosts = 8
  • Reset status variables, like FLUSH STATUS.

    Declaration

    Objective-C

    OHRefreshOptionStatus = 16

    Swift

    case status = 16
  • Flush the thread cache.

    Declaration

    Objective-C

    OHRefreshOptionThreads = 32

    Swift

    case threads = 32
  • On a slave replication server, reset the master server information and restart the slave, like RESET SLAVE.

    Declaration

    Objective-C

    OHRefreshOptionSlave = 64

    Swift

    case slave = 64
  • On a master replication server, remove the binary log files listed in the binary log index and truncate the index file, like RESET MASTER.

    Declaration

    Objective-C

    OHRefreshOptionMaster = 128

    Swift

    case master = 128