Documentation ¶
Overview ¶
GENERATED BY dbtogo (github.com/kdar/dbtogo) but edited by mike. do not regenerate ---args: /home/h4ck3rm1k3/goroot_sql/bin/kdb sqlite3
Index ¶
Constants ¶
View Source
const DBName = "taginfo-db.db"
Variables ¶
View Source
var InsertStmts = map[string]string{
"Source": "INSERT INTO Source (Id,Name,Updatestart,Updateend,Datauntil) VALUES (?, ?, ?, ?, ?)",
"Stats": "INSERT INTO Stats (Key,Value) VALUES (?, ?)",
"Keys": "INSERT INTO Keys (Key,Countall,Countnodes,Countways,Countrelations,Valuesall,Valuesnodes,Valuesways,Valuesrelations,Usersall,Usersnodes,Usersways,Usersrelations,Cellsnodes,Cellsways,Inwiki,Inprojects,Characters) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
"Prevalentvalues": "INSERT INTO Prevalentvalues (Key,Value,Count,Fraction) VALUES (?, ?, ?, ?)",
"Keydistributions": "INSERT INTO Keydistributions (Key,Objecttype,Png) VALUES (?, ?, ?)",
"Similarkeys": "INSERT INTO Similarkeys (Key1,Key2,Countall1,Countall2,Similarity) VALUES (?, ?, ?, ?, ?)",
"Tagdistributions": "INSERT INTO Tagdistributions (Key,Value,Objecttype,Png) VALUES (?, ?, ?, ?)",
"Tags": "INSERT INTO Tags (Key,Value,Countall,Countnodes,Countways,Countrelations,Inwiki,Inprojects) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
"Keycombinations": "INSERT INTO Keycombinations (Key1,Key2,Countall,Countnodes,Countways,Countrelations) VALUES (?, ?, ?, ?, ?, ?)",
"Tagcombinations": "INSERT INTO Tagcombinations (Key1,Value1,Key2,Value2,Countall,Countnodes,Countways,Countrelations) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
"Relationtypes": "INSERT INTO Relationtypes (Rtype,Count,Membersall,Membersnodes,Membersways,Membersrelations) VALUES (?, ?, ?, ?, ?, ?)",
"Relationroles": "INSERT INTO Relationroles (Rtype,Role,Countall,Countnodes,Countways,Countrelations) VALUES (?, ?, ?, ?, ?, ?)",
"Prevalentroles": "INSERT INTO Prevalentroles (Rtype,Role,Count,Fraction) VALUES (?, ?, ?, ?)",
"Sqlitestat1": "INSERT INTO Sqlitestat1 (Tbl,Idx,Stat) VALUES (?, ?, ?)",
"Similarkeyscommonrare": "INSERT INTO Similarkeyscommonrare (Keycommon,Keyrare,Countallcommon,Countallrare,Similarity) VALUES (?, ?, ?, ?, ?)",
}
View Source
var SelectStmts = map[string]string{
"Source": "SELECT Id,Name,Updatestart,Updateend,Datauntil FROM Source",
"Stats": "SELECT Key,Value FROM Stats",
"Keys": "SELECT Key,Countall,Countnodes,Countways,Countrelations,Valuesall,Valuesnodes,Valuesways,Valuesrelations,Usersall,Usersnodes,Usersways,Usersrelations,Cellsnodes,Cellsways,Inwiki,Inprojects,Characters FROM Keys",
"Prevalentvalues": "SELECT Key,Value,Count,Fraction FROM Prevalentvalues",
"Keydistributions": "SELECT Key,Objecttype,Png FROM Keydistributions",
"Similarkeys": "SELECT Key1,Key2,Countall1,Countall2,Similarity FROM Similarkeys",
"Tagdistributions": "SELECT Key,Value,Objecttype,Png FROM Tagdistributions",
"Tags": "SELECT Key,Value,Countall,Countnodes,Countways,Countrelations,Inwiki,Inprojects FROM Tags",
"Keycombinations": "SELECT Key1,Key2,Countall,Countnodes,Countways,Countrelations FROM Keycombinations",
"Tagcombinations": "SELECT Key1,Value1,Key2,Value2,Countall,Countnodes,Countways,Countrelations FROM Tagcombinations",
"Relationtypes": "SELECT Rtype,Count,Membersall,Membersnodes,Membersways,Membersrelations FROM Relationtypes",
"Relationroles": "SELECT Rtype,Role,Countall,Countnodes,Countways,Countrelations FROM Relationroles",
"Prevalentroles": "SELECT Rtype,Role,Count,Fraction FROM Prevalentroles",
"Sqlitestat1": "SELECT Tbl,Idx,Stat FROM Sqlitestat1",
"Similarkeyscommonrare": "SELECT Keycommon,Keyrare,Countallcommon,Countallrare,Similarity FROM Similarkeyscommonrare",
}
Functions ¶
This section is empty.
Types ¶
type Keycombinations ¶
type Keycombinations struct { Key1 string Key2 string Countall int64 Countnodes int64 Countways int64 Countrelations int64 }
func (*Keycombinations) Args ¶
func (t *Keycombinations) Args() []interface{}
type Keydistributions ¶
func (*Keydistributions) Args ¶
func (t *Keydistributions) Args() []interface{}
type Keys ¶
type Keys struct { Key string Countall int64 Countnodes int64 Countways int64 Countrelations int64 Valuesall int64 Valuesnodes int64 Valuesways int64 Valuesrelations int64 Usersall int64 Usersnodes int64 Usersways int64 Usersrelations int64 Cellsnodes int64 Cellsways int64 Inwiki int64 Inprojects int64 Characters string }
type Prevalentroles ¶
func (*Prevalentroles) Args ¶
func (t *Prevalentroles) Args() []interface{}
type Prevalentvalues ¶
func (*Prevalentvalues) Args ¶
func (t *Prevalentvalues) Args() []interface{}
type Relationroles ¶
type Relationroles struct { Rtype string Role string Countall int64 Countnodes int64 Countways int64 Countrelations int64 }
func (*Relationroles) Args ¶
func (t *Relationroles) Args() []interface{}
type Relationtypes ¶
type Relationtypes struct { Rtype string Count int64 Membersall int64 Membersnodes int64 Membersways int64 Membersrelations int64 }
func (*Relationtypes) Args ¶
func (t *Relationtypes) Args() []interface{}
type Similarkeys ¶
type Similarkeys struct { Key1 string Key2 string Countall1 int64 Countall2 int64 Similarity int64 }
func (*Similarkeys) Args ¶
func (t *Similarkeys) Args() []interface{}
type Similarkeyscommonrare ¶
type Similarkeyscommonrare struct { Keycommon string Keyrare string Countallcommon int64 Countallrare int64 Similarity int64 }
func (*Similarkeyscommonrare) Args ¶
func (t *Similarkeyscommonrare) Args() []interface{}
type Sqlitestat1 ¶
func (*Sqlitestat1) Args ¶
func (t *Sqlitestat1) Args() []interface{}
type Tagcombinations ¶
type Tagcombinations struct { Key1 string Value1 string Key2 string Value2 string Countall int64 Countnodes int64 Countways int64 Countrelations int64 }
func (*Tagcombinations) Args ¶
func (t *Tagcombinations) Args() []interface{}
type Tagdistributions ¶
func (*Tagdistributions) Args ¶
func (t *Tagdistributions) Args() []interface{}
Click to show internal directories.
Click to hide internal directories.