WIP on README - first draft
This commit is contained in:
parent
703be3e0fa
commit
62240723ca
17 changed files with 197 additions and 21 deletions
|
@ -2,5 +2,6 @@ from .model import (
|
|||
RedisModel,
|
||||
HashModel,
|
||||
JsonModel,
|
||||
EmbeddedJsonModel,
|
||||
Field
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
import click
|
||||
from redis_developer.orm.migrations.migrator import Migrator
|
||||
from redis_developer.om.migrations.migrator import Migrator
|
||||
|
||||
|
||||
@click.command()
|
|
@ -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__)
|
|
@ -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
|
|
@ -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):
|
|
@ -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):
|
Loading…
Add table
Add a link
Reference in a new issue