Commit 02556800 authored by Inkhey's avatar Inkhey

correct 3nodestypeview

parent 28a3bd52
Inkhey <mail@inkey-art.net> inkhey <mail@inkey-art.net>
......@@ -196,35 +196,41 @@ class sqlGit(object):
size as taille,
dir as dir,
"" as name,
"" as email,
"" as subject,
"" as abbrev_hash,
0 as date,
"file" as type
"file" as type,
dir || name as label
from file
union
select email as id,
select name || email as id,
"" as taille,
"" as dir,
name as name,
email as email,
"" as subject,
"" as abbrev_hash,
0 as date,
"author" as type
"author" as type,
name as label
from author
union
select hash as id,
"" as taille,
"" as dir,
"" as name,
"" as email,
subject as subject,
abbrev_hash as abbrev_hash,
date as date,
"commit" as type
"commit" as type,
abbrev_hash as label
from commits;
''')
c.execute(
'''create view edges as
select author_mail as source,
select author_name || author_mail as source,
commits as target,
author_name,
"" as dir
......
create view nodes as
select name,size,dir,null,null,null,null,"file" as type from file
union
select name,null,null,email,null,null,null,"author" as type from author
union
select subject as name,null,null,null,hash,abbrev_hash,date,"commit" as type from commits;
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