(engine storepb.Engine, schema *storepb.SchemaMetadata)
| 190 | } |
| 191 | |
| 192 | func GetSchemaDefinition(engine storepb.Engine, schema *storepb.SchemaMetadata) (string, error) { |
| 193 | f, ok := getSchemaDefinitions[engine] |
| 194 | if !ok { |
| 195 | return "", errors.Errorf("engine %s is not supported", engine) |
| 196 | } |
| 197 | return f(schema) |
| 198 | } |
| 199 | |
| 200 | func RegisterGetDatabaseDefinition(engine storepb.Engine, f getDatabaseDefinition) { |
| 201 | mux.Lock() |
no test coverage detected