bump version
This commit is contained in:
@ -21,7 +21,12 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
The `ormar` package is an async ORM for Python, with support for Postgres,
|
The `ormar` package is an async ORM for Python, with support for Postgres,
|
||||||
MySQL, and SQLite. Ormar is built with:
|
MySQL, and SQLite.
|
||||||
|
|
||||||
|
Ormar - apart form obvious ORM in name - get it's name from ormar in swedish which means snakes, and ormar(e) in italian which means cabinet.
|
||||||
|
And what's a better name for python ORM than snakes cabinet :)
|
||||||
|
|
||||||
|
Ormar is built with:
|
||||||
|
|
||||||
* [`SQLAlchemy core`][sqlalchemy-core] for query building.
|
* [`SQLAlchemy core`][sqlalchemy-core] for query building.
|
||||||
* [`databases`][databases] for cross-database async support.
|
* [`databases`][databases] for cross-database async support.
|
||||||
|
|||||||
@ -15,7 +15,7 @@ from ormar.fields import (
|
|||||||
)
|
)
|
||||||
from ormar.models import Model
|
from ormar.models import Model
|
||||||
|
|
||||||
__version__ = "0.2.1"
|
__version__ = "0.2.2"
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Integer",
|
"Integer",
|
||||||
"BigInteger",
|
"BigInteger",
|
||||||
|
|||||||
@ -57,7 +57,7 @@ class String(ModelFieldFactory):
|
|||||||
_bases = (pydantic.ConstrainedStr, BaseField)
|
_bases = (pydantic.ConstrainedStr, BaseField)
|
||||||
_type = str
|
_type = str
|
||||||
|
|
||||||
def __new__( # noqa CFQ002
|
def __new__( # noqa CFQ002
|
||||||
cls,
|
cls,
|
||||||
*,
|
*,
|
||||||
allow_blank: bool = False,
|
allow_blank: bool = False,
|
||||||
@ -231,7 +231,7 @@ class Decimal(ModelFieldFactory):
|
|||||||
_bases = (pydantic.ConstrainedDecimal, BaseField)
|
_bases = (pydantic.ConstrainedDecimal, BaseField)
|
||||||
_type = decimal.Decimal
|
_type = decimal.Decimal
|
||||||
|
|
||||||
def __new__( # noqa CFQ002
|
def __new__( # noqa CFQ002
|
||||||
cls,
|
cls,
|
||||||
*,
|
*,
|
||||||
minimum: float = None,
|
minimum: float = None,
|
||||||
|
|||||||
@ -167,8 +167,6 @@ class QuerySet:
|
|||||||
del new_kwargs[pkname]
|
del new_kwargs[pkname]
|
||||||
|
|
||||||
new_kwargs = self.model_cls.substitute_models_with_pks(new_kwargs)
|
new_kwargs = self.model_cls.substitute_models_with_pks(new_kwargs)
|
||||||
|
|
||||||
# Build the insert expression.
|
|
||||||
expr = self.table.insert()
|
expr = self.table.insert()
|
||||||
expr = expr.values(**new_kwargs)
|
expr = expr.values(**new_kwargs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user