Perhaps you're thinking of codex
(obsolete) a code, or body of laws [Collins]
As noted, its not much in use today.
There are also several compendia of law in specific fields called restatements
(law) Any of several treatises published by the American Law Institute in which a group of legal scholars within a field of law set forth the principles of that field of law based on legal precedents [Wiktionary]
These include, for example Restatement of the Law Second, Torts and Restatement Second, Contracts. These are each the second version of this compilation in these fields.
These are not simply compilations of statutes in these fields, since much of US law is not codified, but is based on judicial decisions. Rather, they are summaries of the general legal principles across most jurisdictions within the US, but there is significant variation by region and state.
There is also a system of collecting all of the significant judicial decisions for a given locale in a set of volumes called reporters [Glossary of Legal Terms].
Obviously, this is limited to the US and many other systems exist in other jurisdictions.