let create_vtable = fun ~name ~table -> validate_name_exn name; { vt_name = name; vt_ftable = table; vt_join = []; vt_db = table.ta_db; }