github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/pkg/sqlbuilder/zz_generated.runtimedoc.go (about) 1 /* 2 Package sqlbuilder GENERATED BY gengo:runtimedoc 3 DON'T EDIT THIS FILE 4 */ 5 package sqlbuilder 6 7 // nolint:deadcode,unused 8 func runtimeDoc(v any, names ...string) ([]string, bool) { 9 if c, ok := v.(interface { 10 RuntimeDoc(names ...string) ([]string, bool) 11 }); ok { 12 return c.RuntimeDoc(names...) 13 } 14 return nil, false 15 } 16 17 func (AdditionType) RuntimeDoc(names ...string) ([]string, bool) { 18 return []string{}, true 19 } 20 func (Additions) RuntimeDoc(names ...string) ([]string, bool) { 21 return []string{}, true 22 } 23 func (Assignments) RuntimeDoc(names ...string) ([]string, bool) { 24 return []string{}, true 25 } 26 func (BuildSubQuery) RuntimeDoc(names ...string) ([]string, bool) { 27 return []string{}, true 28 } 29 func (ColOptionFunc) RuntimeDoc(names ...string) ([]string, bool) { 30 return []string{}, true 31 } 32 func (v ColumnDef) RuntimeDoc(names ...string) ([]string, bool) { 33 if len(names) > 0 { 34 switch names[0] { 35 case "Type": 36 return []string{}, true 37 case "DataType": 38 return []string{}, true 39 case "Length": 40 return []string{}, true 41 case "Decimal": 42 return []string{}, true 43 case "Default": 44 return []string{}, true 45 case "OnUpdate": 46 return []string{}, true 47 case "Null": 48 return []string{}, true 49 case "AutoIncrement": 50 return []string{}, true 51 case "DeprecatedActions": 52 return []string{}, true 53 case "Comment": 54 return []string{}, true 55 case "Description": 56 return []string{}, true 57 case "Relation": 58 return []string{}, true 59 60 } 61 62 return nil, false 63 } 64 return []string{}, true 65 } 66 67 func (v ComposedCondition) RuntimeDoc(names ...string) ([]string, bool) { 68 if len(names) > 0 { 69 switch names[0] { 70 case "SqlConditionMarker": 71 return []string{}, true 72 73 } 74 if doc, ok := runtimeDoc(v.SqlConditionMarker, names...); ok { 75 return doc, ok 76 } 77 78 return nil, false 79 } 80 return []string{}, true 81 } 82 83 func (v Condition) RuntimeDoc(names ...string) ([]string, bool) { 84 if len(names) > 0 { 85 switch names[0] { 86 case "SqlConditionMarker": 87 return []string{}, true 88 89 } 90 if doc, ok := runtimeDoc(v.SqlConditionMarker, names...); ok { 91 return doc, ok 92 } 93 94 return nil, false 95 } 96 return []string{}, true 97 } 98 99 func (v DeprecatedActions) RuntimeDoc(names ...string) ([]string, bool) { 100 if len(names) > 0 { 101 switch names[0] { 102 case "RenameTo": 103 return []string{}, true 104 105 } 106 107 return nil, false 108 } 109 return []string{}, true 110 } 111 112 func (FieldValues) RuntimeDoc(names ...string) ([]string, bool) { 113 return []string{}, true 114 } 115 func (v IndexDefine) RuntimeDoc(names ...string) ([]string, bool) { 116 if len(names) > 0 { 117 switch names[0] { 118 case "Kind": 119 return []string{}, true 120 case "Name": 121 return []string{}, true 122 case "Method": 123 return []string{}, true 124 case "ColNameAndOptions": 125 return []string{}, true 126 127 } 128 129 return nil, false 130 } 131 return []string{}, true 132 } 133 134 func (IndexOptionFunc) RuntimeDoc(names ...string) ([]string, bool) { 135 return []string{}, true 136 } 137 func (Indexes) RuntimeDoc(names ...string) ([]string, bool) { 138 return []string{}, true 139 } 140 func (NamedArgSet) RuntimeDoc(names ...string) ([]string, bool) { 141 return []string{}, true 142 } 143 func (v OtherAddition) RuntimeDoc(names ...string) ([]string, bool) { 144 if len(names) > 0 { 145 switch names[0] { 146 case "SqlExpr": 147 return []string{}, true 148 149 } 150 if doc, ok := runtimeDoc(v.SqlExpr, names...); ok { 151 return doc, ok 152 } 153 154 return nil, false 155 } 156 return []string{}, true 157 } 158 159 func (v StmtSelect) RuntimeDoc(names ...string) ([]string, bool) { 160 if len(names) > 0 { 161 switch names[0] { 162 case "SelectStatement": 163 return []string{}, true 164 165 } 166 if doc, ok := runtimeDoc(v.SelectStatement, names...); ok { 167 return doc, ok 168 } 169 170 return nil, false 171 } 172 return []string{}, true 173 } 174 175 func (v StructField) RuntimeDoc(names ...string) ([]string, bool) { 176 if len(names) > 0 { 177 switch names[0] { 178 case "Name": 179 return []string{}, true 180 case "FieldName": 181 return []string{}, true 182 case "Type": 183 return []string{}, true 184 case "Field": 185 return []string{}, true 186 case "Tags": 187 return []string{}, true 188 case "Loc": 189 return []string{}, true 190 case "ModelLoc": 191 return []string{}, true 192 case "ColumnType": 193 return []string{}, true 194 195 } 196 197 return nil, false 198 } 199 return []string{}, true 200 } 201 202 func (v StructFieldValue) RuntimeDoc(names ...string) ([]string, bool) { 203 if len(names) > 0 { 204 switch names[0] { 205 case "Field": 206 return []string{}, true 207 case "TableName": 208 return []string{}, true 209 210 } 211 212 return nil, false 213 } 214 return []string{}, true 215 } 216 217 func (Toggles) RuntimeDoc(names ...string) ([]string, bool) { 218 return []string{}, true 219 }