Skip to content

Add more postgres support #2080

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

Merged
merged 2 commits into from
Jun 16, 2016
Merged

Conversation

drew-gross
Copy link
Contributor

Also cleans up authData handling a bit. Note that in order to create the username/email unique constraint in Postgres, that means the _User class needs to exist, so we are now creating it when the server starts.

More passing postgres tests

Handle schema updates, and $in for non array columns

remove authdata from user and implement ensureUniqueness

Make some tests work, detect existing classes

Throw proper error for unique index violation
delete schema.fields._hashed_password;
schema.fields.password = { type: 'String' };
}

return schema;
}

const injectDefaultSchema = schema => ({
className: schema.className,
const injectDefaultSchema = ({className, fields, classLevelPermissions}) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@codecov-io
Copy link

codecov-io commented Jun 16, 2016

Current coverage is 91.91%

Merging #2080 into master will increase coverage by 0.47%

@@             master      #2080   diff @@
==========================================
  Files            93         93          
  Lines          6692       6715    +23   
  Methods        1183       1192     +9   
  Messages          0          0          
  Branches       1401       1410     +9   
==========================================
+ Hits           6119       6172    +53   
+ Misses          573        543    -30   
  Partials          0          0          

Powered by Codecov. Last updated by 627b416...aede3af

@peterdotjs
Copy link
Contributor

nice! looks super clean.

@peterdotjs peterdotjs merged commit 0ff35e1 into parse-community:master Jun 16, 2016
@drew-gross drew-gross deleted the postgres-9 branch June 16, 2016 22:40
@lifeisfunny
Copy link

Is this a Postgres database adapter ? Can I use to replace mongodb ? When is the official release ?

@lifeisfunny
Copy link

Can I try it ? Super excited !

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.

7 participants