B
B
beduin012018-03-05 12:51:28
Python
beduin01, 2018-03-05 12:51:28

Are constraints at the database level necessary if they are set at the schema level?

Suppose I am describing a database schema for use with SQLAlchemy. In the schema, I specify that one of the columns is a foreign key to another table. But what if the database itself does not specify this restriction?
Will it work? If so, is it necessary to set restrictions at the database level at all if you plan to use ORM exclusively?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question