-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add README, LICENSE and re-format
- Loading branch information
Showing
5 changed files
with
52 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# nanoid-postgres | ||
NanoID for PostgresSQL | ||
# Nano ID for PostgreSQL | ||
|
||
<img src="./logo.svg" align="right" alt="Nano ID logo by Anton Lovchikov" width="180" height="94"> | ||
|
||
A tiny, secure, URL-friendly, unique string ID generator for Postgres. | ||
|
||
> “An amazing level of senseless perfectionism, | ||
> which is simply impossible not to respect.” | ||
* **Small.** 130 bytes (minified and gzipped). No dependencies. | ||
[Size Limit] controls the size. | ||
* **Fast.** It is 2 times faster than UUID. | ||
* **Safe.** It uses hardware random generator. Can be used in clusters. | ||
* **Short IDs.** It uses a larger alphabet than UUID (`A-Za-z0-9_-`). | ||
So ID size was reduced from 36 to 21 symbols. | ||
|
||
```sql | ||
SELECT nanoid(); | ||
``` | ||
|
||
Check out the root project: [ai/nanoid](https://github.com/ai/nanoid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters