@actually_connor/uuid
Advanced tools
Comparing version 0.3.9 to 0.3.10
{ | ||
"name": "@actually_connor/uuid", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "A JavaScript library that provides a 'ramsey/uuid'-like interface for the uuid package", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -45,15 +45,16 @@ <h1 align="center">@actually_connor/uuid</h1> | ||
await this.model | ||
.createQueryBuilder() | ||
.insert() | ||
.into(Table) | ||
.values({ | ||
uuid: () => `UNHEX('${Uuid.uuid4().getHex()}')`, | ||
}) | ||
.execute(); | ||
.createQueryBuilder() | ||
.insert() | ||
.into(Table) | ||
.values({ | ||
uuid: Uuid.uuid4().getBuffer(), | ||
}) | ||
.execute(); | ||
``` | ||
### MySQL | ||
```sql | ||
INSERT INTO `ActivityDefinition` (`uuid`) | ||
VALUES('UNHEX("616343E4FC6746A598DC73C39C873F34")'); | ||
```javascript | ||
await this.model | ||
.createQueryBuilder() | ||
.where('uuid = :uuid', { uuid: uuid.getBuffer() }) | ||
.getOne(); | ||
``` | ||
@@ -74,3 +75,3 @@ | ||
[rfc4122]: http://tools.ietf.org/html/rfc4122 | ||
[conduct]: https://github.com/ramsey/uuid/blob/main/CODE_OF_CONDUCT.md | ||
[conduct]: https://github.com/ActuallyConnor/uuid/blob/main/CODE_OF_CONDUCT.md | ||
[ramseyuuid]: https://github.com/ramsey/uuid | ||
@@ -77,0 +78,0 @@ [npm]: https://www.npmjs.com/ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36658
79