db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
}

func OpenDb

func OpenDb(filepath string) (*DB, error)

func (*DB) Begin

func (db *DB) Begin() (*Tx, error)

func (*DB) GetAllIncludes

func (Db *DB) GetAllIncludes() []Include

func (*DB) GetFiles

func (Db *DB) GetFiles() []string

func (*DB) GetFunctionCallsForFileImmediate

func (Db *DB) GetFunctionCallsForFileImmediate(file string) []string

func (*DB) GetIncludes

func (Db *DB) GetIncludes(file string) []Include

func (*DB) GetIncludesForFile

func (Db *DB) GetIncludesForFile(file string) map[string]string

func (*DB) GetIncludesForFileRecursive

func (Db *DB) GetIncludesForFileRecursive(file string) []string

func (*DB) GetIncludesOfFile

func (Db *DB) GetIncludesOfFile(file string) []string

func (*DB) GetNonReferencedFiles

func (Db *DB) GetNonReferencedFiles() []string

func (*DB) GetSyscallIdsForFile

func (Db *DB) GetSyscallIdsForFile(file string) []int

func (*DB) GetSyscallNames

func (Db *DB) GetSyscallNames() []string

func (*DB) GetSyscallsForFile

func (Db *DB) GetSyscallsForFile(file string) SyscallRequirement

func (*DB) GetSyscallsForFileImmediate

func (Db *DB) GetSyscallsForFileImmediate(file string) []string

type Include

type Include struct {
	File             sql.NullString
	Resolved_include sql.NullString
	Static           sql.NullInt64
	Count            sql.NullInt64
	Include_string   sql.NullString
}

type SyscallRequirement

type SyscallRequirement map[string]map[string][]string

type Tx

type Tx struct {
	*sql.Tx
}

func (*Tx) CreateClass

func (tx *Tx) CreateClass(fqn string, name string, file string) error

func (*Tx) CreateClassInstance

func (tx *Tx) CreateClassInstance(file string, fqn string, name string) error

func (*Tx) CreateFile

func (tx *Tx) CreateFile(path string) error

func (*Tx) CreateFunction

func (tx *Tx) CreateFunction(name string, line int, len_param int, req_param int) error

Check what namespacing does to this

func (*Tx) CreateFunctionCall

func (tx *Tx) CreateFunctionCall(file string, function_name string) error

func (*Tx) CreateInclude

func (tx *Tx) CreateInclude(file string, resolved_include string, count int, fully_dynamic int, include_string string) error

func (*Tx) CreateResolvedClassInstance

func (tx *Tx) CreateResolvedClassInstance(file string, resolvedClassFile string, className string) error

func (*Tx) CreateSyscall

func (tx *Tx) CreateSyscall(name string, number int) error

func (*Tx) CreateSyscallRequirement

func (tx *Tx) CreateSyscallRequirement(function_name string, syscall_name string) error

Jump to

Keyboard shortcuts

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