MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NewShellType

Function NewShellType

server/types/shell.go:28–63  ·  view source on GitHub ↗

NewShellType creates new instance of shell DoltgresType.

(ctx *sql.Context, internalID id.Type)

Source from the content-addressed store, hash-verified

26
27// NewShellType creates new instance of shell DoltgresType.
28func NewShellType(ctx *sql.Context, internalID id.Type) *DoltgresType {
29 return &DoltgresType{
30 ID: internalID,
31 TypLength: 4,
32 PassedByVal: true,
33 TypType: TypeType_Pseudo,
34 TypCategory: TypeCategory_PseudoTypes,
35 IsPreferred: false,
36 IsDefined: false,
37 Delimiter: ",",
38 RelID: id.Null,
39 SubscriptFunc: toFuncID("-"),
40 Elem: internalNullType,
41 Array: internalNullType,
42 InputFunc: toFuncID("shell_in", toInternal("cstring")),
43 OutputFunc: toFuncID("shell_out", toInternal("void")),
44 ReceiveFunc: toFuncID("-"),
45 SendFunc: toFuncID("-"),
46 ModInFunc: toFuncID("-"),
47 ModOutFunc: toFuncID("-"),
48 AnalyzeFunc: toFuncID("-"),
49 Align: TypeAlignment_Int,
50 Storage: TypeStorage_Plain,
51 NotNull: false,
52 BaseTypeType: internalNullType,
53 TypMod: -1,
54 NDims: 0,
55 TypCollation: id.NullCollation,
56 DefaulBin: "",
57 Default: "",
58 Acl: nil,
59 Checks: nil,
60 attTypMod: -1,
61 CompareFunc: toFuncID("-"),
62 }
63}

Callers 1

RowIterMethod · 0.92

Calls 2

toFuncIDFunction · 0.85
toInternalFunction · 0.85

Tested by

no test coverage detected