MCPcopy Index your code
hub / github.com/bytebase/bytebase / GetDefaultTransactionMode

Function GetDefaultTransactionMode

backend/common/engine.go:470–473  ·  view source on GitHub ↗

GetDefaultTransactionMode returns the default transaction mode. All engines default to "on" (transactional) for safety and backward compatibility. Users can explicitly set "-- txn-mode = off" when needed for engines with limited transactional DDL support.

()

Source from the content-addressed store, hash-verified

468// All engines default to "on" (transactional) for safety and backward compatibility.
469// Users can explicitly set "-- txn-mode = off" when needed for engines with limited transactional DDL support.
470func GetDefaultTransactionMode() TransactionMode {
471 // All engines default to "on" for safety and backward compatibility
472 return TransactionModeOn
473}
474
475func ConvertToParserEngine(e storepb.Engine) (storepb.Engine, error) {
476 switch e {

Callers 12

ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected