You can use the .lib file directly in PrimeTime without going through a .lib to .db conversion. The flow in PrimeTime would be:
read_lib library.lib
The library name (not the filename) should now be added to the link_library variable:
set link_library {* library_name}
Now if you read the in the design and link it, the tool will use the library properly. In the above example, the script should change to:
read_lib class.lib
set link_path "* class"
read_verilog test.v
link
Note, in the link_path, it's just "class" not "class.db". If you have more than one library that you need to read in with "read_lib" command, you can do:
read_lib lib1.lib
read_lib lib2.lib
read_lib lib3.lib
set link_path "*"
foreach_in_collection mylib [get_libs *] {
lappend link_path [get_object_name $mylib]
}
read_verilog test.v
link