-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implementing BlobKeyProperty
in ndb
.
#6445
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
Conversation
@@ -56,10 +57,16 @@ | |||
] | |||
|
|||
|
|||
BlobKey = _ports.BlobKey |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
MAX_BLOB_FETCH_SIZE = 1015808 | ||
UPLOAD_INFO_CREATION_HEADER = "X-AppEngine-Upload-Creation" | ||
|
||
BlobKeyProperty = model.BlobKeyProperty |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
ndb/src/google/cloud/ndb/_ports.py
Outdated
|
||
|
||
@functools.total_ordering | ||
class BlobKey: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
ndb/src/google/cloud/ndb/_ports.py
Outdated
from google.cloud.ndb import exceptions | ||
|
||
|
||
_MAX_STRING_LENGTH = 1500 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
ndb/src/google/cloud/ndb/_ports.py
Outdated
.. note:: | ||
|
||
The blobstore was an early Google App Engine feature that later became | ||
Google Cloud Storage. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
a327b40
to
28b2155
Compare
ndb/src/google/cloud/ndb/_ports.py
Outdated
) | ||
elif blob_key is not None: | ||
raise exceptions.BadValueError( | ||
"blob key should be a string; received " |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This looks good to me for the most part. I'm still struggling with understanding why we need it. I also wonder if, instead of |
This is a port from `google.appengine.api.datastore_types` in the SDK.
I think you're right about the |
28b2155
to
bf152fa
Compare
No description provided.