update column types in readme
This commit is contained in:
11
README.md
11
README.md
@ -7,10 +7,9 @@
|
|||||||
<a href="https://codecov.io/gh/encode/orm">
|
<a href="https://codecov.io/gh/encode/orm">
|
||||||
<img src="https://codecov.io/gh/collerek/async-orm/branch/master/graph/badge.svg" alt="Coverage">
|
<img src="https://codecov.io/gh/collerek/async-orm/branch/master/graph/badge.svg" alt="Coverage">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://pypi.org/project/orm/">
|
<a href="https://www.codefactor.io/repository/github/collerek/async-orm">
|
||||||
<img src="https://badge.fury.io/py/orm.svg" alt="Package version">
|
<img src="https://www.codefactor.io/repository/github/collerek/async-orm/badge" alt="CodeFactor" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.codefactor.io/repository/github/collerek/async-orm"><img src="https://www.codefactor.io/repository/github/collerek/async-orm/badge" alt="CodeFactor" /></a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
The `async-orm` package is an async ORM for Python, with support for Postgres,
|
The `async-orm` package is an async ORM for Python, with support for Postgres,
|
||||||
@ -164,10 +163,10 @@ The following keyword arguments are supported on all field types.
|
|||||||
|
|
||||||
All fields are required unless one of the following is set:
|
All fields are required unless one of the following is set:
|
||||||
|
|
||||||
* `allow_null` - Creates a nullable column. Sets the default to `None`.
|
* `nullable` - Creates a nullable column. Sets the default to `None`.
|
||||||
* `allow_blank` - Allow empty strings to validate. Sets the default to `""`.
|
|
||||||
* `default` - Set a default value for the field.
|
* `default` - Set a default value for the field.
|
||||||
|
|
||||||
|
Available Model Fields:
|
||||||
* `orm.String(length)`
|
* `orm.String(length)`
|
||||||
* `orm.Text()`
|
* `orm.Text()`
|
||||||
* `orm.Boolean()`
|
* `orm.Boolean()`
|
||||||
@ -177,6 +176,8 @@ All fields are required unless one of the following is set:
|
|||||||
* `orm.Time()`
|
* `orm.Time()`
|
||||||
* `orm.DateTime()`
|
* `orm.DateTime()`
|
||||||
* `orm.JSON()`
|
* `orm.JSON()`
|
||||||
|
* `orm.BigInteger()`
|
||||||
|
* `orm.Decimal(lenght, precision)`
|
||||||
|
|
||||||
[sqlalchemy-core]: https://docs.sqlalchemy.org/en/latest/core/
|
[sqlalchemy-core]: https://docs.sqlalchemy.org/en/latest/core/
|
||||||
[databases]: https://github.com/encode/databases
|
[databases]: https://github.com/encode/databases
|
||||||
|
|||||||
Reference in New Issue
Block a user