anyDatabaseReady returns true if at least one database has an initialized schema.
()
| 146 | |
| 147 | // anyDatabaseReady returns true if at least one database has an initialized schema. |
| 148 | func (gj *graphjinEngine) anyDatabaseReady() bool { |
| 149 | for _, ctx := range gj.databases { |
| 150 | if ctx.schema != nil { |
| 151 | return true |
| 152 | } |
| 153 | } |
| 154 | return false |
| 155 | } |
| 156 | |
| 157 | type GraphJin struct { |
| 158 | atomic.Value |
no outgoing calls
no test coverage detected