MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / BoolToInt

Method BoolToInt

internal/store/dialect.go:69–69  ·  view source on GitHub ↗

BoolToInt converts a Go bool to a query parameter value. SQLite: 0/1 (integers) PostgreSQL: true/false (native booleans)

(b bool)

Source from the content-addressed store, hash-verified

67 // SQLite: 0/1 (integers)
68 // PostgreSQL: true/false (native booleans)
69 BoolToInt(b bool) interface{}
70
71 // ILike returns the case-insensitive LIKE operator.
72 // SQLite: LIKE (case-insensitive by default)

Callers 15

CreateShareLinkMethod · 0.65
ImportWorkspaceMethod · 0.65
CreateCollectionMethod · 0.65
EnableTOTPMethod · 0.65
DisableTOTPMethod · 0.65
CreateViewMethod · 0.65
CreateDocumentMethod · 0.65
UpdateDocumentMethod · 0.65
CreateOAuthConnectionMethod · 0.65
SetScopeFlagsMethod · 0.65

Implementers 2

sqliteDialectinternal/store/dialect.go
postgresDialectinternal/store/dialect.go

Calls

no outgoing calls

Tested by 2

insertRawWebhookFunction · 0.52