MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / create_tables

Function create_tables

instapy/database_engine.py:106–123  ·  view source on GitHub ↗
(cursor, tables)

Source from the content-addressed store, hash-verified

104
105
106def create_tables(cursor, tables):
107 if "profiles" in tables:
108 cursor.execute(SQL_CREATE_PROFILE_TABLE)
109
110 if "recordActivity" in tables:
111 cursor.execute(SQL_CREATE_RECORD_ACTIVITY_TABLE)
112
113 if "followRestriction" in tables:
114 cursor.execute(SQL_CREATE_FOLLOW_RESTRICTION_TABLE)
115
116 if "shareWithPodsRestriction" in tables:
117 cursor.execute(SQL_CREATE_SHARE_WITH_PODS_RESTRICTION_TABLE)
118
119 if "commentRestriction" in tables:
120 cursor.execute(SQL_CREATE_COMMENT_RESTRICTION_TABLE)
121
122 if "accountsProgress" in tables:
123 cursor.execute(SQL_CREATE_ACCOUNTS_PROGRESS_TABLE)
124
125
126def verify_database_directories(address):

Callers 1

create_databaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected