Skip to content
/ ulids Public

ULIDs support null ULID & store ULID as string to DB.

Notifications You must be signed in to change notification settings

fahmifan/ulids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ULIDs goreportcard

ULIDs support null ULID & store ULID as string to DB.

By default, the ulid.ULID from github.com/oklog/ulid is stored as binary, and it is hard to query it in DBMS, that's why I make this little helper that wraped the original ulid.ULID to store it as string to DB. Also, I'd like to avoid pointer in struct if possible, insipred by the github.com/guregu/null library, I added a Null type that can store ulid.ULID as NULL in DB and also supported null JSON.

Install

go get github.com/fahmifan/ulids

Example

Usage example can be found here

About

ULIDs support null ULID & store ULID as string to DB.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages