| Conditions | 1 |
| Total Lines | 23 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #This file create a SQLite local database for CNBP requirement. |
||
| 11 | def create_localDB_CNBP(Path): |
||
| 12 | |||
| 13 | # name of the TableName to be created |
||
| 14 | |||
| 15 | |||
| 16 | #Create the PRIMARY KEY column. |
||
| 17 | |||
| 18 | |||
| 19 | load_dotenv() |
||
| 20 | |||
| 21 | username = os.getenv("LORISusername") |
||
| 22 | password = os.getenv("LORISpassword") |
||
| 23 | |||
| 24 | # Create the variable array that store the columns information to be used later in loop for column creation |
||
| 25 | TableName = schema.CNBP_schema_table_name |
||
| 26 | KeyField = schema.CNBP_schema_keyfield |
||
| 27 | NewColumns = schema.CNBP_schema_fields |
||
| 28 | NewColumnsTypes = schema.CNBP_schema_fields_types |
||
| 29 | |||
| 30 | NewColumnSpec = zip(NewColumns, NewColumnsTypes) |
||
| 31 | NewColumnSpecList = list(NewColumnSpec) |
||
| 32 | |||
| 33 | return LocalDBCreate(Path, TableName, KeyField, NewColumnSpecList) |
||
| 34 | |||
| 37 | create_localDB_CNBP("..\LocalDB\LocalDB_CNBPs.sqlite") |
||
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.