InstallTypeDef installs an arbitrary type definition into the schema.
(def TypeDef)
| 860 | |
| 861 | // InstallTypeDef installs an arbitrary type definition into the schema. |
| 862 | func (s *Server) InstallTypeDef(def TypeDef) { |
| 863 | s.installLock.Lock() |
| 864 | defer s.installLock.Unlock() |
| 865 | s.typeDefs[def.TypeName()] = def |
| 866 | s.invalidateSchemaCache() |
| 867 | } |
| 868 | |
| 869 | // ObjectType returns the ObjectType with the given name, if it exists. |
| 870 | func (s *Server) ObjectType(name string) (ObjectType, bool) { |
no test coverage detected