WIP on README - first draft

This commit is contained in:
Andrew Brookins 2021-10-19 15:06:50 -07:00
parent 703be3e0fa
commit 62240723ca
17 changed files with 197 additions and 21 deletions

View file

@ -2,5 +2,6 @@ from .model import (
RedisModel,
HashModel,
JsonModel,
EmbeddedJsonModel,
Field
)

View file

@ -1,5 +1,5 @@
import click
from redis_developer.orm.migrations.migrator import Migrator
from redis_developer.om.migrations.migrator import Migrator
@click.command()

View file

@ -7,7 +7,7 @@ from typing import Optional
from redis import ResponseError
from redis_developer.connections import get_redis_connection
from redis_developer.orm.model import model_registry
from redis_developer.om.model import model_registry
redis = get_redis_connection()
log = logging.getLogger(__name__)

View file

@ -1331,3 +1331,8 @@ class JsonModel(RedisModel, abc.ABC):
raise sortable_tag_error
return schema
return ""
class EmbeddedJsonModel(JsonModel, abc.ABC):
class Meta:
embedded = True

View file

@ -1,7 +1,7 @@
import abc
from typing import Optional
from redis_developer.orm.model import JsonModel, HashModel
from redis_developer.om.model import JsonModel, HashModel
class BaseJsonModel(JsonModel, abc.ABC):

View file

@ -1,7 +1,7 @@
from collections import Sequence
from typing import Any, Dict, Mapping, Union, List
from redis_developer.orm.model import Expression
from redis_developer.om.model import Expression
class LogicalOperatorForListOfExpressions(Expression):