Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] UUID as primary key #443

Conversation

james-burke-codes
Copy link

Resolution to issue #442

This pull request will enable Postgresql users to use a UUID as a primary key. Currently when trying to do an insert the code expects an integer to be returned resulting in a ValueError exception.

@james-burke-codes james-burke-codes changed the title return uuid on insert UUID as primary key Jan 19, 2017
@james-burke-codes james-burke-codes changed the title UUID as primary key [WIP] UUID as primary key Jan 19, 2017
@codecov-io
Copy link

Current coverage is 68.65% (diff: 60.00%)

Merging #443 into master will decrease coverage by 0.02%

@@             master       #443   diff @@
==========================================
  Files            69         69          
  Lines          9163       9167     +4   
  Methods           0          0          
  Messages          0          0          
  Branches       1987       1983     -4   
==========================================
  Hits           6294       6294          
- Misses         2347       2351     +4   
  Partials        522        522          

Powered by Codecov. Last update e49dd9b...a73a097

@mdipierro
Copy link
Contributor

@gi0baro I am fine with this. If you are too, I would merge it.

@gi0baro
Copy link
Member

gi0baro commented Apr 28, 2017

@mdipierro I'm not really happy with the implementation. IMHO if we really want to support this we should plan a complete implementation.

@gi0baro
Copy link
Member

gi0baro commented Apr 28, 2017

@mdipierro also, this should still be considered a Work in progress, see the title.

@mdipierro
Copy link
Contributor

I agree. In the case of Mongodb, my original approach was to map UUIDs in long integers and vice versa.

@chthor
Copy link

chthor commented Jan 29, 2020

+1 for string id support. My application requires a string id field and it looks like currently there's no way I can make that work.

@mdipierro
Copy link
Contributor

I am going to decline this. It is a good idea but requires a lot more changes than this one.

@mdipierro mdipierro closed this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants