sloppy work on passing all of the test and reimplementing most of the features from encode

This commit is contained in:
collerek
2020-08-04 18:44:17 +02:00
parent a6f8fc6d7e
commit 345fd227d1
9 changed files with 648 additions and 24 deletions

View File

@ -158,6 +158,7 @@ The following keyword arguments are supported on all field types.
* `primary_key`
* `nullable`
* `default`
* `server_default`
* `index`
* `unique`
@ -165,6 +166,9 @@ All fields are required unless one of the following is set:
* `nullable` - Creates a nullable column. Sets the default to `None`.
* `default` - Set a default value for the field.
* `server_default` - Set a default value for the field on server side (like sqlalchemy's `func.now()`).
* `primary key` with `autoincrement` - When a column is set to primary key and autoincrement is set on this column.
Autoincrement is set by default on int primary keys.
Available Model Fields:
* `orm.String(length)`