Questions tagged [uuid]

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID is a 16-octet (128-bit) number. In its canonical form, a UUID is represented by 32 hexadecimal digits, displayed in five groups separated by hyphens e.g.

5a0e8422-e29b-41d4-a716-416155440000

UUID is standardised by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE).

Wikipedia page for Universally Unique Identifier

See also:

3237 questions
1
vote
1 answer

How to remove dashes in UUID with nodejs?

I'm trying to remove the dashes in the UUID by using the replace function on NodeJS but unsuccessful as it always returns with dashes. const { v4: uuidv4 } = require('uuid'); const uuid = uuidv4().toString() console.log(uuid.replace("-","")) The…
lll
  • 65
  • 1
  • 9
1
vote
1 answer

Allow auto-generated columns to be set with a simple string value

I need a string primary column that gets auto-generated when no value is set while still being able to set it myself to whatever value I want. Here's how I handled it on MySQL : @Entity() export class Item extends BaseEntity { …
coteArthur
  • 11
  • 3
1
vote
0 answers

Google UUID package for Golang parses MSSQL uuid in different way

I'm working with existing MSSQL Server DB, it already has entries and now we are integrating GORM to the existent Go project. Before GORM, this tool used to work with this package github.com/denisenkom/go-mssqldb so we use it's uuid integrated…
1
vote
2 answers

Room Query always returns NULL when given UUID argument

I am currently learning about Room through the Big Nerd Ranch Android Programming textbook. Currently I am able to successfully query for all of the Crimes in my Crimes table, but my query for only one Crime based on UUID always returns null.…
1
vote
3 answers

How can I generate a custom - UUID with some salt/ private key out of some string column in table from sql-query?

let say we have a Table of employees having the column EmployeeName, Department: EmployeeName Department John HR. Jenny Tech. I want to have a new column in a view taking EmployeeName as data along with static private-key. Don't wanna…
1
vote
1 answer

How do apps prevent duplicate entries in the database if the Unique ID is generated on the server side

Consider a facebook-like application and following sequence of actions: Application submits post-content to the server Server associates a UUID to that post-content and inserts the post in a KV-store against that key. Server also…
user855
  • 19,048
  • 38
  • 98
  • 162
1
vote
1 answer

HTTP request - error "Missing header 'UUID'"

I've made a HTTP request by using Postman. Method:POST. Body (json) : { "value1" : ["1-JH"], "value2": ["Test"], "value3": true } But there is an error. Do you know how to fix it? "message": "Missing header 'UUID'"
inspiredd
  • 195
  • 2
  • 11
1
vote
1 answer

Are python's uuid namespaces the same for everyone?

In python's UUID module, there are four namespace constants: NAMESPACE_DNS, NAMESPACE_URL, NAMESPACE_OID and NAMESPACE_X500. Are the objects stored in these constants the same for everyone using python? At home, I tried checking NAMESPACE_DNS and…
manoelpqueiroz
  • 575
  • 1
  • 7
  • 17
1
vote
1 answer

UUID represented as Bson String

I think I really have a simple use case but I'm struggling hard to make it work with MongoDB. I have a POJO which looks like public class Item { @BsonRepresentation(value = BsonType.STRING) private UUID id; private String version; //…
bluepix
  • 107
  • 1
  • 11
1
vote
2 answers

how to add unique key using uuid in react js?

I read a comment from someone here in StockOverflow who talks about React keys and said that 'React expects STABLE keys, meaning you should assign the keys once and every item on your list should receive the same key every time, that way React can…
wail
  • 55
  • 2
  • 10
1
vote
1 answer

Java padding UUID with 0's for missing places in standard format

The UUID input defined in an JAVA API is padding 0's when tried with invalid UUID. For example f185d2ab-50-4fd0-bbb3-af04543b6f05 is being converted to f185d2ab-0050-4fd0-bbb3-af04543b6f05. Observe the second part of the UUID. Is there any way we…
Te Jas
  • 45
  • 9
1
vote
1 answer

What is the UUID version generated by JDK 11?

I am using JDK 11.0.2. What is the default UUID version if i do: UUID.randomUUID(); Adding more details. By version i mean UUID v1 / UUID v2 / v3 / v4 etc..
user1354825
  • 1,108
  • 4
  • 21
  • 54
1
vote
0 answers

How do I convert a UUID from string format to binary format in Lua?

In Lua, how do I get most significant bit and least significant bit of a UUID(150b28fc-3f3f-4c74-83e5-ab6a626e0cb1)? I'd like to convert it to binary format using string.pack(">L>L",msb,lsb).
BobJ
  • 11
  • 3
1
vote
0 answers

Is there a way to generate uuid in range?

I have use case in which I have to generate 10 million discount codes for a campaign. There can be multiple campaigns. Hence the final discount figures can be close to 200-300 million discount codes. A simple solution would be to generate these many…
1
vote
0 answers

Passport UUID, Cliend UUID and User UUID

I just created a new laravel project where I'll use passport for auth. My users have UUID and installed passport with the UUID option. things I've noticed... passport's id is a primary string of 100…