Skip to content

seldo/compact-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compact-uuid

AUTO_INCREMENT is for chumps. Make your primary key compatible with distributed, multi-master systems from the get-go by using UUIDs. Inspired by http://mysql.rjweb.org/doc.php/uuid

Usage

Your field should by MySQL BINARY(16) or compatible. Simply call

var CompactUuid = require('compact-uuid');
var myId = CompactUuid.generate()

About

UUIDs that fit into MySQL BINARY(16)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published