Implementing BlobKeyProperty in ndb.#6445
Conversation
| ] | ||
|
|
||
|
|
||
| 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.
|
|
||
|
|
||
| @functools.total_ordering | ||
| class BlobKey: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 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.
| .. 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.