model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Define

type Define struct {
	CName string // e.g. "SQLITE_OK"
	Value string // e.g. "0"
}

Define represents a #define constant.

type Function

type Function struct {
	CName        string // e.g. "sqlite3_open_v2"
	GoName       string // e.g. "Sqlite3OpenV2"
	ReturnCType  string // e.g. "int"
	ReturnGoType string // e.g. "int32"
	Params       []Param
	IsVariadic   bool
}

Function represents a parsed SQLITE_API function declaration.

type Group

type Group struct {
	Name      string     // Go interface name: "Lifecycle", "Column"
	File      string     // output filename stem: "lifecycle", "column"
	Functions []Function // functions belonging to this group
}

Group holds parsed functions assigned to a specific outbound port group.

type Header struct {
	Path      string
	Functions []Function
	Defines   []Define
	Typedefs  []Typedef
}

Header represents the parsed content of sqlite3.h.

type Param

type Param struct {
	CName   string // e.g. "filename"
	GoName  string // e.g. "filename"
	CType   string // e.g. "const char*"
	GoType  string // e.g. "string"
	IsConst bool
	Pointer int // number of * in the type
}

Param represents a function parameter.

type Typedef

type Typedef struct {
	CName  string // e.g. "sqlite3"
	GoName string // e.g. "Sqlite3"
}

Typedef represents a typedef struct declaration.

Jump to

Keyboard shortcuts

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