Table schema, the osquery user API, is created using the Python-based “.spec” files in ./specs. More documentation on how specs work can be found in the Creating New Tables developer documentation. These files are used to build osquery, but can be parsed to create JSON-based API schema. This JSON is published to the homepage at [https://osquery.io/schema/].

那么exec(compile(tree, "<string>", "exec"))就是执行其中的代码。举例来说，以table_name("os_version")为例，其实当执行到这行时，就认为是需要调用table_name()函数，其参数值是os_version.同样description("A single row containing the operating system name and version.")就是执行description()函数，其参数值是A single row......