neuralib.sqlp.table

Field

A SQL column, a field in a table.

table_name

the name of the table.

table_field_names

list of the name for each field in the table.

table_fields

list fields in the table.

table_field

Get field by the name in the table.

table_primary_fields

list of the name for each primary field in the table.

UniqueConstraint

UniqueConstraint(name, table, fields, conflict)

table_unique_fields

list of the name for each unique field in the table.

make_unique_constraint

ForeignConstraint

SQL foreign constraint.

table_foreign_fields

get a list of the foreign constraint in the table.

table_foreign_field

get the foreign constraint in the table that refer to the target table.

make_foreign_constrain

CheckConstraint

SQL check constraint

table_check_fields

get a dict of the field constraint in the table.

table_check_field

get the check constrain of a field in the table.

make_check_constraint