taginfo_model

package
v0.0.0-...-c39fa9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2015 License: AGPL-3.0 Imports: 0 Imported by: 0

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 Arger

type Arger interface {
	Args() []interface{}
}

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

type Keydistributions struct {
	Key        string
	Objecttype string
	Png        string
}

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
}

func (*Keys) Args

func (t *Keys) Args() []interface{}

func (Keys) TableName

func (t Keys) TableName() string

type Prevalentroles

type Prevalentroles struct {
	Rtype    string
	Role     string
	Count    int64
	Fraction float64
}

func (*Prevalentroles) Args

func (t *Prevalentroles) Args() []interface{}

type Prevalentvalues

type Prevalentvalues struct {
	Key      string
	Value    string
	Count    int64
	Fraction float64
}

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 Source

type Source struct {
	Id          string
	Name        string
	Updatestart string
	Updateend   string
	Datauntil   string
}

func (*Source) Args

func (t *Source) Args() []interface{}

type Sqlitestat1

type Sqlitestat1 struct {
	Tbl  string
	Idx  string
	Stat string
}

func (*Sqlitestat1) Args

func (t *Sqlitestat1) Args() []interface{}

type Stats

type Stats struct {
	Key   string
	Value string
}

func (*Stats) Args

func (t *Stats) 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

type Tagdistributions struct {
	Key        string
	Value      string
	Objecttype string
	Png        string
}

func (*Tagdistributions) Args

func (t *Tagdistributions) Args() []interface{}

type Tags

type Tags struct {
	Key            string
	Value          string
	Countall       int64
	Countnodes     int64
	Countways      int64
	Countrelations int64
	Inwiki         int64
	Inprojects     int64
}

func (*Tags) Args

func (t *Tags) Args() []interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL