AppEngine: restrictions on the value of the "view" of a Datastore object?

When creating objects with a low-level API in the AppEngine data warehouse, you must provide a kind object, for example

 Entity newEntity = new Entity("SomeEntityKind", id); 

The docs are here , but they don't explain anything about the limitations on kind . I also checked the AppEngine Python docs, but they do not jave the low-level Entities API (and Key does not list any kind restrictions).

Are there any restrictions on the kind format? Can it contain white space characters? Other special characters? Any length limit?

Does anyone have more info on this?

+6
source share
1 answer

Yes, this is not indicated. I will see that this is fixed.

Basically, if you stick to names that can be derived from class names, everything will be fine. Do not use leading double underscores. I will make specific restrictions later and update this.

Update: 500 characters are reserved, starting and ending with double underscores. Do not insert new lines. Unicode may cause you problems with parts of the SDK that do not expect this. Basically, stick to Kind names, which can be derived from class names, and everything will be fine.

+8
source

Source: https://habr.com/ru/post/899240/


All Articles