Skip to content

azlev/pgbrtypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgbrtypes

An experiment to create postgres extensions using Rust pgrx infrastructure.

Also, it's another project to explore brazilian document numbers (CNPJ, CPF, PIS, RG) by creating strong types to each one. The postgres type system will grant:

  • check digits validation
  • int64 storage (better performance and indexing)
  • string conversion and mask

Installation

cargo pgrx package # pg_config must be on PATH

psql
CREATE EXTENSION pgbrtypes;
SELECT CNPJ '191';
        cnpj        
--------------------
 00.000.000/0001-91
(1 row)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages