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 support for GeoPoint type #23

Merged
merged 3 commits into from
Jan 29, 2015
Merged

Conversation

raymondfeng
Copy link
Contributor

}
}
return dbData;
}
Copy link
Member

Choose a reason for hiding this comment

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

Does it make sense to move most of this method into SqlConnector base, so that connectors provide only a function to map a single property/column?

PostgreSQL.prototype.mapValueToDB = function(value, type) {
  if (type === 'GeoPoint' && value) {
    return '(' + value.lat + ',' + value.lng + ')';
  } else {
    return value;
  }
}

@BerkeleyTrue
Copy link
Contributor

Any word when will this be merged?

@bajtos
Copy link
Member

bajtos commented Jan 5, 2015

Any word when will this be merged?

@raymondfeng ping

raymondfeng added a commit that referenced this pull request Jan 29, 2015
@raymondfeng raymondfeng merged commit d08dad7 into master Jan 29, 2015
@raymondfeng raymondfeng removed the #wip label Jan 29, 2015
@raymondfeng raymondfeng deleted the feature/add-geopoint-support branch January 29, 2015 03:30
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.

None yet

3 participants