package
3.7.1+incompatible
Repository: https://github.com/knocknote/sqlboiler.git
Documentation: pkg.go.dev
# Functions
Begin a transaction with the current global database handle.
BeginTx begins a transaction with the current global database handle.
Blacklist creates a list that overrides column inference choices by excluding a column from the inferred list.
DebugWriterFrom returns the debug writer for the context, or DebugWriter if not set.
GetContextDB retrieves the global state database handle as a context executor.
GetDB retrieves the global state database handle.
GetLocation retrieves the global timestamp Location.
Greylist creates a list that adds to the inferred column choices.
HooksAreSkipped returns true if the context skips hooks.
Infer is a placeholder that means there is no other list, simply infer the final list of columns for insert/update etc.
IsBoilErr checks if err is a boilErr.
IsDebug returns true if the context has debugging enabled, or the value of DebugMode if not set.
SetDB initializes the database handle for all template db interactions.
SetLocation sets the global timestamp Location.
SkipHooks modifies a context to prevent hooks from running for any query it encounters.
SkipTimestamps modifies a context to prevent hooks from running for any query it encounters.
TimestampsAreSkipped returns true if the context skips hooks.
Whitelist creates a list that completely overrides column inference.
WithDebug modifies a context to configure debug writing.
WithDebugWriter modifies a context to configure the writer written to when debugging is enabled.
WrapErr wraps err in a boilErr.
# Constants
the hook point constants.
the hook point constants.
the hook point constants.
the hook point constants.
the hook point constants.
the hook point constants.
the hook point constants.
the hook point constants.
the hook point constants.
# Variables
DebugMode is a flag controlling whether generated sql statements and debug information is outputted to the DebugWriter handle
NOTE: This should be disabled in production to avoid leaking sensitive data.
DebugWriter is where the debug output will be sent if DebugMode is true.
# Interfaces
Beginner begins transactions.
ContextBeginner allows creation of context aware transactions with options.
ContextExecutor can perform SQL queries with context.
ContextTransactor can commit and rollback, on top of being able to execute context-aware queries.
Executor can perform SQL queries.
Transactor can commit and rollback, on top of being able to execute queries.
# Type aliases
HookPoint is the point in time at which we hook.