NewShellType creates new instance of shell DoltgresType.
(ctx *sql.Context, internalID id.Type)
| 26 | |
| 27 | // NewShellType creates new instance of shell DoltgresType. |
| 28 | func 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 | } |
no test coverage detected