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

Add uuid support #749

Merged
merged 9 commits into from
Jun 25, 2016
Merged

Conversation

spelletier
Copy link
Member

Add support for auto generated UUID type 4 (random) as primary key.
Add a uuid prototype for FrontBase, MySQL and PostgreSQL. I do not have instance of other type of database to test them.
Add support for UUID primary key in ERRest.

@darkv darkv added the Wonder7 label May 30, 2016
@avendasora avendasora merged commit 347468d into wocommunity:master Jun 25, 2016
@spelletier spelletier deleted the add_uuid_support branch June 26, 2016 18:34
},
{
columnName = uuid;
externalType = bytea;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Samuel,

Would it be possible to use PostgreSQL's uuid as the external type here? Or does it create problems elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paul,

PG UUID seems to map to Java UUID and is a very PG specific. I do not remember having tried to map a UUID column to an NSData with EOF.

Keep in mind that EOF only supports Integer, Long, String, Date and NSData as primary key type.

Samuel

Le 28 juin 2016 à 07:19, Paul Hoadley notifications@github.com a écrit :

In Frameworks/Core/ERPrototypes/Resources/erprototypes.eomodeld/EOJDBCPostgresqlPrototypes.plist #749 (comment):

@@ -359,6 +359,13 @@
valueClassName = NSString;
valueType = S;
width = 10000000;

  •    }, 
    
  •    {
    
  •        columnName = uuid; 
    
  •        externalType = bytea; 
    
    Hi Samuel,

Would it be possible to use PostgreSQL's uuid https://www.postgresql.org/docs/current/static/datatype-uuid.html as the external type here? Or does it create problems elsewhere?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/wocommunity/wonder/pull/749/files/66093a103c504f7328258ea4c5a59052244c0d08..bde27aea1cebb6979543b5bedd9e0a78894dba38#r68738897, or mute the thread https://github.com/notifications/unsubscribe/AA-cjlxQd5Iz-penZKgBNvWmacj57584ks5qQQNXgaJpZM4In8EK.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks Samuel—it was lost on me that your overall aim was primary key support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants