{"modulePath":"github.com/andrewbytecoder/nmq","version":"v0.0.0-20261028105650-d8b0a59c570e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package storage\n\n## Variables\n\n```go\nvar ErrSQLiteTableNotFound = errors.New(\"sqlite table not found\")\n```\n\n## Types\n\n```go\ntype SQLiteTableDetail struct {\n\tName        string           `json:\"name\"`\n\tType        string           `json:\"type\"`\n\tColumns     []string         `json:\"columns\"`\n\tPrimaryKeys []string         `json:\"primaryKeys\"`\n\tRows        []map[string]any `json:\"rows\"`\n\tRowCount    int64            `json:\"rowCount\"`\n\tPage        int              `json:\"page\"`\n\tPerPage     int              `json:\"perPage\"`\n}\n```\n\n```go\ntype SQLiteTableProvider interface {\n\tListSQLiteTables() ([]SQLiteTableSummary, error)\n\tGetSQLiteTable(name string, page int, perPage int) (SQLiteTableDetail, error)\n}\n```\n\n```go\ntype SQLiteTableSummary struct {\n\tName         string   `json:\"name\"`\n\tType         string   `json:\"type\"`\n\tRowCount     int64    `json:\"rowCount\"`\n\tColumnCount  int      `json:\"columnCount\"`\n\tPrimaryKeys  []string `json:\"primaryKeys\"`\n\tPrimaryCount int      `json:\"primaryCount\"`\n}\n```\n\n```go\ntype SqliteTableProvider struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewSQLiteTableProvider(ctx nmq.Context, log *zap.Logger) *SqliteTableProvider\n```\n\n```go\nfunc (p *SqliteTableProvider) GetSQLiteTable(name string, page int, perPage int) (SQLiteTableDetail, error)\n```\n\n```go\nfunc (p *SqliteTableProvider) ListSQLiteTables() ([]SQLiteTableSummary, error)\n```\n\n","path":"github.com/andrewbytecoder/nmq/plugins/webui/storage","name":"storage","synopsis":"","isRedistributable":true}
