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 use uuid as primary key type with sequelize-typescript annotations?

I'd like to use UUID instead of the default autoincremented integer that Sequelize impose. Note that I have to use the npm package sequelize-typescript Here's my attempt so far. export class SequelizeIterationModel extends…
A Mehmeto
  • 1,594
  • 3
  • 22
  • 37
1
vote
0 answers

Is it possible to get this UUID from a random generator?

is it possible to get this UUID "00000CB98D9A4C87A6504C5313080EB9" from a random generator ? Because of the five zeros at the beginning.
benne
  • 11
  • 1
1
vote
2 answers

querying for document id with firestore

I have the database design below. I was wondering how I would be able to use an id like KeXrsroFOeMs4XNjgC7hto retrieve the value for that document. Here is my current code: db.collection('users',).where(id, '==', id) …
Juliette
  • 4,309
  • 2
  • 14
  • 31
1
vote
0 answers

Firebase Functions: UUID version is different for firebase-tools

When I deploy functions to Cloud Functions I get this warning: npm WARN deprecated har-validator@5.1.3: this library is no longer supported npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos…
savante
  • 805
  • 1
  • 7
  • 20
1
vote
1 answer

Flutter Web UUID Unique Identifier

How can I get UUID in Flutter Web. I need some unique identifier in order to keep record of devices useb by customer,my testing device,develeper device. In android, I'm using device_info_plugin. How can I get Unique identifier in Web? Thanks in…
Honey Last
  • 255
  • 1
  • 3
  • 15
1
vote
2 answers

Invalid UUID/Services returned while scanning paired devices

I am trying to find a specific type of device based on its services from the list of already paired devices, but when I get the devices UUID, none of the services supported by the device actually show up. I don't want to device.connectGatt(this,…
O2Addict
  • 147
  • 11
1
vote
0 answers

How to query SQLAlchemy/PostgreSQL table for existence of an object where PK is UUID

Apologies if this is poorly phrased as I'm pretty new to SQLAlchemy. Suppose I have the following setup: class Student(Base): __tablename__ = 'student' id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4) name = …
Nick
  • 41
  • 2
1
vote
0 answers

Does UUID ever change? (Python UUID module in Windows)

So I make python programs that gets the user's UUID through this code sample: import uuid current_uuid = str(uuid.getnode()) The script detects if the files are copied and used in another windows PC. This is because the script saves the current…
Austin
  • 73
  • 9
1
vote
1 answer

Gorm UUID foreign key - belongs to

I'm trying to create a belongs to relation between two database tables, using GORM, my code is the following: type Shop struct { ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid"` Name string `json:"name" gorm:"not null"…
Marcelo
  • 585
  • 5
  • 13
1
vote
1 answer

spring / hibernate: Generate UUID automatically for Id column

I am trying to persist a simple class using Spring, with hibernate/JPA and a PostgreSQL database. The ID column of the table is a UUID, which I want to generate in code, not in the database. This should be straightforward since hibernate and…
mdarwin
  • 1,684
  • 7
  • 28
  • 72
1
vote
1 answer

How To Cycle Through Images on Button Click

So I have spent an embarrassing amount of time on this and I come to ask you to save my sanity. I am building an app to conduct evaluations on my blind and visually impaired students. In this particular section, we are testing their color vision…
1
vote
1 answer

Generate deterministic Namespace based md5 UUID from a string in java and ruby

I am trying to create a deterministic UUID in java to generate same UUID as we have in our ruby codebase but unable to do so and need help. #ruby code using uuidtools gem (version: 2.1.5) # UUIDTools::UUID_OID_NAMESPACE is UUID created for string…
1
vote
0 answers

Generate and Join UUID keys of two tables (SQL)

I'm building a simple database in MySQLWorkbench with two tables: Study (1) and Series (2). In the future, we will import data from a CSV file into these tables. Study should generate a new UUID as PRIMARY KEY (PK) named ID for every new…
Jeromekem
  • 85
  • 9
1
vote
1 answer

Passing UUID of one table to another table as a Foreign key value in PostgreSQL

I have table Employee in Postgres: drop table if exists employee; create table employee ( id uuid default uuid_generate_v4 () primary key, first_name varchar not null, last_name varchar not null ); And another table salary : drop table if…
Farkhad
  • 89
  • 7
1
vote
2 answers

How does UUID work with PHPCassa

I am using: CassandraUtil::uuid1(); This is what I get: ämªðÏBà=0£Ï‰ I though it would output a int. What is going on? Is it normal? Also should I use uuid1 or 2 or 3 or 4 or ...? Thanks in advance!
jnbdz
  • 4,863
  • 9
  • 51
  • 93