Commit 5fbcf305 authored by Inkhey's avatar Inkhey

add View empty functions

parent dd837476
......@@ -72,7 +72,9 @@ class sqlGit(object):
# INSERT
# DATA
def getContent(self, path, depth):
''' get_all_content and delete unused file'''
os.chdir(path)
self.getAuthor()
self.getCommit()
......@@ -159,6 +161,28 @@ class sqlGit(object):
values (?,?,?);''', data)
self.conn.commit()
# VIEW
def 3nodestypeView():
'''View with 3 types of nodes : author,commit,file''''
pass
def 2nodestypeView():
'''View with 2 types of nodes : author,file''''
pass
def fileView():
'''View of relation between files''''
pass
def authorView():
'''View of relation between authors''''
pass
def fileCommitView():
pass
def authorCommitView():
pass
# CLEAN
def deleteUnusedFile(self):
''' delete unused file (who are not linked to any commit.)'''
......@@ -186,9 +210,10 @@ class sqlGit(object):
c.execute('DROP TABLE ' + table + ' ;')
self.conn.commit()
# autotest
if __name__ == '__main__':
db = sqlGit('self.db')
db.cleanDB()
#db.cleanDB()
db.create_table()
db.getContent('.', 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment