Functions to check various identification numbers
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sql
src
test
.exclude.list
.gitignore
LICENSE
META.json
Makefile
README.md
check_digits.control

README.md

check digits

PGXN version

Functions to check various identification numbers.

Functions

  • check_digits_inn(inn text)

Checks russian Individual Taxpayer Number (INN)

  • check_digits_okpo(okpo text)

Checks All-Russian Classifier of Enterprises and Organizations (OKPO, ru)

  • check_digits_ogrn(ogrn text)

Check Primary State Registration Number (OGRN, ru)

  • check_digits_snils(snils text)

Check Insurance Number of Individual Ledger Account (SNILS, ru)

  • check_digits_isbn(isbn text)

Check International Standard Book Number (ISBN-10 and ISBN-13)

Installation

Build with

$ make

To make the regression tests run

$ make installcheck

Install with

$ sudo make install

At last to create the extension type in psql

$$ CREATE EXTENSION check_digits;

License

Copyright (c) 2015 - 2017 Dmitriy Olshevskiy. MIT LICENSE.

See LICENSE for details.