firstprayer / monsql

MonSQL - Light-weighted, MongoDB-style Wrapper for multiple Relational Databases
MIT License
2 stars 2 forks source link

Short-Circuit Choose and Fix typos #2

Closed GochoMugo closed 9 years ago

GochoMugo commented 9 years ago

When monsql.drop_table is invoked, internally we first evaluate silent. If it is true, we continue to evaluate .is_table_existed. If false, we ignore the second evaluation.This will avoid accessing the database (in evaluating .is_table_existed) everytime monsql.drop_table is invoked.

For more information on short-circuit operators, see https://docs.python.org/2/library/stdtypes.html#boolean-operations-and-or-not

Some minor typo errors are fixed. silent was mispelled as slient.

firstprayer commented 9 years ago

Good fix. Thanks :)

GochoMugo commented 9 years ago

:+1: This project is rather interesting. Hoping to contribute more.