neuralib.sqlp.annotation

CURRENT_DATE

annotated a date field which use current date as its default.

CURRENT_TIME

annotated a time field which use current time as its default.

CURRENT_TIMESTAMP

annotated a datetime field which use current datetime as its default.

PRIMARY

annotate a field as a primary key.

UNIQUE

annotated a field as a unique key.

unique

A decorator to create an unique constraint.

foreign

A decorator to create a foreign constraint.

check

A decorator to make a check constraint.