String (op_type.go)

go-sqlite · op_type.go · go · ISC
database

SQLite operation type enum with String conversion for debugging.

// Source: https://github.com/zombiezen/go-sqlite | License: ISC | Copyright 2018 David Crawshaw <david@zentus.com>
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright 2021 Roxy Light
// SPDX-License-Identifier: ISC

package sqlite

import (
	"fmt"

	lib "modernc.org/sqlite/lib"
)

// OpType is an enumeration of SQLite statements and authorizable actions.
type OpType int32

// Operation types
const (
	OpCreateIndex       OpType = lib.SQLITE_CREATE_INDEX
	OpCreateTable       OpType = lib.SQLITE_CREATE_TABLE
	OpCreateTempIndex   OpType = lib.SQLITE_CREATE_TEMP_INDEX
	OpCreateTempTable   OpType = lib.SQLITE_CREATE_TEMP_TABLE
	OpCreateTempTrigger OpType = lib.SQLITE_CREATE_TEMP_TRIGGER
	OpCreateTempView    OpType = lib.SQLITE_CREATE_TEMP_VIEW
	OpCreateTrigger     OpTy

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key