()
| 23 | } |
| 24 | |
| 25 | func UseSQLVisibility() bool { |
| 26 | switch cliFlags.persistenceDriver { |
| 27 | case mysql.PluginName, postgresql.PluginName, postgresql.PluginNamePGX, sqlite.PluginName: |
| 28 | return true |
| 29 | // If the main storage is Cassandra, Elasticsearch is used for visibility. |
| 30 | default: |
| 31 | return false |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func UseCassandraPersistence() bool { |
| 36 | return cliFlags.persistenceType == config.StoreTypeNoSQL && cliFlags.persistenceDriver == "cassandra" |
no outgoing calls