FILENAME 4/4 - naming_sqlite.rs uses NameType not NameKind
Summary:
My goal is to have a clean implementation of the FILENAME action all the way from Naming_provider through to decl-service-worker.
There are two types in ocaml, `Naming_types.name_kind` which has structure and `FileInfo.name_type` which doesn't. The ocaml codebase uses both, mostly through historical legacy of code which (pointlessly) uses `Naming_types.kind_of_type`.
The decl service doesn't need that legacy. I've switched over to using `file_info::NameType` everywhere in the decl service. Indeed, the only consumer of it was Naming_provider.ml, which always wanted a NameType, so all the intermediate uses of NameKind were just a waste.
I also moved `impl FromSql for SqliteNameKind` in naming_sqlite/datatypes.rs into `impl FromSql for NameType` in oxidized/file_info_impl.rs. It feels a little bit awkward that a really tiny atomic type like file_info should depend upon rusqlite, but only a little bit.
Differential Revision:
D31326773
fbshipit-source-id:
1acd6394f10dd11a4e19179be2a0373cac8ece8a