GithubHelp home page GithubHelp logo

meteogrid / pgemailaddr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from petere/pgemailaddr

0.0 5.0 0.0 4 KB

email address type for PostgreSQL

Home Page: https://twitter.com/pvh/status/667106073199775744

Makefile 2.60% PLSQL 32.49% C 64.91%

pgemailaddr's Introduction

emailaddr type for PostgreSQL

https://twitter.com/pvh/status/667106073199775744

This is an extension for PostgreSQL that provides a type emailaddr for storing email addresses.

Installation

To build and install this module:

make
make install

or selecting a specific PostgreSQL installation:

make PG_CONFIG=/some/where/bin/pg_config
make PG_CONFIG=/some/where/bin/pg_config install

And finally inside the database:

CREATE EXTENSION emailaddr;

Using

This module provides a data type emailaddr that you can use like a normal type. For example:

CREATE TABLE accounts (
    id int PRIMARY KEY,
    name text,
    email emailaddr
);

INSERT INTO accounts VALUES (1, 'Peter Eisentraut', '[email protected]');

The accepted addresses correspond approximately to the addr-spec production in RFC 5322 (so it's of the type [email protected], but not "Some Name" <[email protected]>).

Request for feedback

Let me now what other functionality you wish to see in an email address type.

pgemailaddr's People

Contributors

petere avatar

Watchers

James Cloos avatar Alberto Valverde avatar Marcos Sánchez Provencio avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.