Skip to content

Commit 7fbf2a8

Browse files
committed
Bump version
1 parent 71b7efe commit 7fbf2a8

14 files changed

Lines changed: 221 additions & 200 deletions

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Matching criteria specified as string or regex
4040

4141
#### Defined in
4242

43-
[src/field-mappings.ts:8](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L8)
43+
[src/field-mappings.ts:8](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/field-mappings.ts#L8)
4444

4545
## Variables
4646

@@ -50,4 +50,4 @@ Matching criteria specified as string or regex
5050

5151
#### Defined in
5252

53-
[src/field-mappings.ts:131](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L131)
53+
[src/field-mappings.ts:131](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/field-mappings.ts#L131)

docs/classes/Generator.md

Lines changed: 89 additions & 67 deletions
Large diffs are not rendered by default.

docs/interfaces/CommonCustomTypesOptions.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Hierarchy
66

7-
- `TypeOf`\<typeof `CommonCustomTypesOptionsSchema`\>
7+
- `input`\<typeof `CommonCustomTypesOptionsSchema`\>
88

99
**`CommonCustomTypesOptions`**
1010

@@ -26,10 +26,8 @@ Relative to cwd
2626

2727
#### Inherited from
2828

29-
z.TypeOf.importPath
29+
z.input.importPath
3030

3131
#### Defined in
3232

33-
[src/generator-options.ts:277](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L277)
34-
35-
[src/generator-options.ts:277](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L277)
33+
[src/generator-options.ts:277](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L277)

docs/interfaces/CommonOptions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Hierarchy
66

7-
- `TypeOf`\<typeof `CommonOptionsSchema`\>
7+
- `input`\<typeof `CommonOptionsSchema`\>
88

99
**`CommonOptions`**
1010

@@ -28,11 +28,11 @@ CommonCustomTypesOptions
2828

2929
#### Inherited from
3030

31-
z.TypeOf.customTypes
31+
z.input.customTypes
3232

3333
#### Defined in
3434

35-
[src/generator-options.ts:285](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L285)
35+
[src/generator-options.ts:285](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L285)
3636

3737
___
3838

@@ -46,11 +46,11 @@ CommonCustomTypesOptions
4646

4747
#### Inherited from
4848

49-
z.TypeOf.primaryKey
49+
z.input.primaryKey
5050

5151
#### Defined in
5252

53-
[src/generator-options.ts:291](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L291)
53+
[src/generator-options.ts:291](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L291)
5454

5555
___
5656

@@ -64,8 +64,8 @@ CommonPrimaryKeyOptions
6464

6565
#### Inherited from
6666

67-
z.TypeOf.typeAdapter
67+
z.input.typeAdapter
6868

6969
#### Defined in
7070

71-
[src/generator-options.ts:288](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L288)
71+
[src/generator-options.ts:288](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L288)

docs/interfaces/CommonPrimaryKeyOptions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Hierarchy
66

7-
- `TypeOf`\<typeof `CommonPrimaryKeyOptionsSchema`\>
7+
- `input`\<typeof `CommonPrimaryKeyOptionsSchema`\>
88

99
**`CommonPrimaryKeyOptions`**
1010

@@ -25,11 +25,11 @@ If primary key column is auto-generated
2525

2626
#### Inherited from
2727

28-
z.TypeOf.isAutoGenerated
28+
z.input.isAutoGenerated
2929

3030
#### Defined in
3131

32-
[src/generator-options.ts:265](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L265)
32+
[src/generator-options.ts:265](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L265)
3333

3434
___
3535

@@ -41,8 +41,8 @@ Name of primary key column
4141

4242
#### Inherited from
4343

44-
z.TypeOf.name
44+
z.input.name
4545

4646
#### Defined in
4747

48-
[src/generator-options.ts:261](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L261)
48+
[src/generator-options.ts:261](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L261)

docs/interfaces/CommonTypeAdapterOptions.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Hierarchy
66

7-
- `TypeOf`\<typeof `CommonTypeAdapterOptionsSchema`\>
7+
- `input`\<typeof `CommonTypeAdapterOptionsSchema`\>
88

99
**`CommonTypeAdapterOptions`**
1010

@@ -25,10 +25,8 @@ when no specific import path is specified at field level
2525

2626
#### Inherited from
2727

28-
z.TypeOf.importPath
28+
z.input.importPath
2929

3030
#### Defined in
3131

32-
[src/generator-options.ts:237](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L237)
33-
34-
[src/generator-options.ts:237](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L237)
32+
[src/generator-options.ts:237](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L237)

docs/interfaces/ExportOptions.md

Lines changed: 22 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Hierarchy
66

7-
- `TypeOf`\<typeof `ExportOptionsSchema`\>
7+
- `input`\<typeof `ExportOptionsSchema`\>
88

99
**`ExportOptions`**
1010

@@ -24,7 +24,7 @@
2424

2525
### columnTypeMappingInterface
2626

27-
**columnTypeMappingInterface**: `boolean`
27+
`Optional` **columnTypeMappingInterface**: `boolean`
2828

2929
Additionally export a column types mapping useful for constructing filter type
3030
for dynamic conditions.
@@ -37,39 +37,35 @@ Example:
3737

3838
#### Inherited from
3939

40-
z.TypeOf.columnTypeMappingInterface
40+
z.input.columnTypeMappingInterface
4141

4242
#### Defined in
4343

44-
[src/generator-options.ts:113](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L113)
45-
46-
[src/generator-options.ts:113](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L113)
44+
[src/generator-options.ts:113](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L113)
4745

4846
___
4947

5048
### crudRepository
5149

52-
**crudRepository**: `boolean`
50+
`Optional` **crudRepository**: `boolean`
5351

5452
Generate a repository class to simplify common single-table CRUD operations
5553

5654
This is currently only supported for tables having an id column as primary key
5755

5856
#### Inherited from
5957

60-
z.TypeOf.crudRepository
58+
z.input.crudRepository
6159

6260
#### Defined in
6361

64-
[src/generator-options.ts:120](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L120)
65-
66-
[src/generator-options.ts:120](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L120)
62+
[src/generator-options.ts:120](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L120)
6763

6864
___
6965

7066
### extractedColumns
7167

72-
**extractedColumns**: `boolean`
68+
`Optional` **extractedColumns**: `boolean`
7369

7470
Additionally export the extracted columns (Useful for select * queries etc.)
7571

@@ -78,19 +74,17 @@ Example:
7874

7975
#### Inherited from
8076

81-
z.TypeOf.extractedColumns
77+
z.input.extractedColumns
8278

8379
#### Defined in
8480

85-
[src/generator-options.ts:101](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L101)
86-
87-
[src/generator-options.ts:101](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L101)
81+
[src/generator-options.ts:101](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L101)
8882

8983
___
9084

9185
### rowTypes
9286

93-
**rowTypes**: `boolean` \| \{ `asInterface`: `boolean` } & `undefined` \| `boolean` \| \{ `asInterface`: `boolean` }
87+
`Optional` **rowTypes**: `boolean` \| \{ `asInterface`: `boolean` }
9488

9589
Additionally export the row types associated with table
9690

@@ -113,19 +107,17 @@ Example:
113107

114108
#### Inherited from
115109

116-
z.TypeOf.rowTypes
110+
z.input.rowTypes
117111

118112
#### Defined in
119113

120-
[src/generator-options.ts:70](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L70)
121-
122-
[src/generator-options.ts:70](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L70)
114+
[src/generator-options.ts:70](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L70)
123115

124116
___
125117

126118
### tableClasses
127119

128-
**tableClasses**: `boolean`
120+
`Optional` **tableClasses**: `boolean`
129121

130122
If set to false, prevents the table class from getting exported
131123

@@ -134,19 +126,17 @@ export the table instance
134126

135127
#### Inherited from
136128

137-
z.TypeOf.tableClasses
129+
z.input.tableClasses
138130

139131
#### Defined in
140132

141-
[src/generator-options.ts:47](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L47)
142-
143-
[src/generator-options.ts:47](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L47)
133+
[src/generator-options.ts:47](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L47)
144134

145135
___
146136

147137
### tableInstances
148138

149-
**tableInstances**: `boolean`
139+
`Optional` **tableInstances**: `boolean`
150140

151141
In addition to the table class, also expose instantiated instance of table class
152142

@@ -157,19 +147,17 @@ Example:
157147

158148
#### Inherited from
159149

160-
z.TypeOf.tableInstances
150+
z.input.tableInstances
161151

162152
#### Defined in
163153

164-
[src/generator-options.ts:39](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L39)
165-
166-
[src/generator-options.ts:39](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L39)
154+
[src/generator-options.ts:39](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L39)
167155

168156
___
169157

170158
### valuesTypes
171159

172-
**valuesTypes**: `boolean` \| \{ `asInterface`: `boolean` } & `undefined` \| `boolean` \| \{ `asInterface`: `boolean` }
160+
`Optional` **valuesTypes**: `boolean` \| \{ `asInterface`: `boolean` }
173161

174162
Additionally export the value types associated with table
175163

@@ -192,10 +180,8 @@ Example:
192180

193181
#### Inherited from
194182

195-
z.TypeOf.valuesTypes
183+
z.input.valuesTypes
196184

197185
#### Defined in
198186

199-
[src/generator-options.ts:93](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L93)
200-
201-
[src/generator-options.ts:93](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/generator-options.ts#L93)
187+
[src/generator-options.ts:93](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/generator-options.ts#L93)

docs/interfaces/FieldMapping.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ z.TypeOf.columnName
3232

3333
#### Defined in
3434

35-
[src/field-mappings.ts:105](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L105)
35+
[src/field-mappings.ts:105](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/field-mappings.ts#L105)
3636

3737
___
3838

@@ -51,7 +51,7 @@ z.TypeOf.columnType
5151

5252
#### Defined in
5353

54-
[src/field-mappings.ts:116](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L116)
54+
[src/field-mappings.ts:116](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/field-mappings.ts#L116)
5555

5656
___
5757

@@ -65,13 +65,13 @@ z.TypeOf.comment
6565

6666
#### Defined in
6767

68-
[src/field-mappings.ts:126](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L126)
68+
[src/field-mappings.ts:126](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/field-mappings.ts#L126)
6969

7070
___
7171

7272
### generatedField
7373

74-
• **generatedField**: ``false`` \| \{ `hasDefault?`: ``null`` \| `boolean` ; `isComputed?`: ``null`` \| `boolean` ; `isOptional?`: ``null`` \| `boolean` ; `name?`: ``null`` \| `string` ; `type?`: ``null`` \| \{ `adapter?`: ``null`` \| \{ `importPath?`: ``null`` \| `string` ; `isDefault?`: ``null`` \| `boolean` ; `isRelative?`: ``null`` \| `boolean` ; `name`: `string` } ; `dbType?`: ``null`` \| \{ `name`: `string` } ; `kind?`: ``null`` \| ``"custom"`` \| ``"customComparable"`` \| ``"enum"`` \| ``"customInt"`` \| ``"customDouble"`` \| ``"customUuid"`` \| ``"customLocalDate"`` \| ``"customLocalTime"`` \| ``"customLocalDateTime"`` ; `tsType?`: ``null`` \| \{ `importPath?`: ``null`` \| `string` ; `isDefault?`: ``null`` \| `boolean` ; `isRelative?`: ``null`` \| `boolean` ; `name`: `string` } } } & `undefined` \| ``false`` \| \{ `hasDefault?`: ``null`` \| `boolean` ; `isComputed?`: ``null`` \| `boolean` ; `isOptional?`: ``null`` \| `boolean` ; `name?`: ``null`` \| `string` ; `type?`: ``null`` \| \{ `adapter?`: ``null`` \| \{ `importPath?`: ``null`` \| `string` ; `isDefault?`: ``null`` \| `boolean` ; `isRelative?`: ``null`` \| `boolean` ; `name`: `string` } ; `dbType?`: ``null`` \| \{ `name`: `string` } ; `kind?`: ``null`` \| ``"custom"`` \| ``"customComparable"`` \| ``"enum"`` \| ``"customInt"`` \| ``"customDouble"`` \| ``"customUuid"`` \| ``"customLocalDate"`` \| ``"customLocalTime"`` \| ``"customLocalDateTime"`` ; `tsType?`: ``null`` \| \{ `importPath?`: ``null`` \| `string` ; `isDefault?`: ``null`` \| `boolean` ; `isRelative?`: ``null`` \| `boolean` ; `name`: `string` } } }
74+
**generatedField**: ``false`` \| \{ `hasDefault?`: ``null`` \| `boolean` ; `isComputed?`: ``null`` \| `boolean` ; `isOptional?`: ``null`` \| `boolean` ; `name?`: ``null`` \| `string` ; `type?`: ``null`` \| \{ `adapter?`: ``null`` \| \{ `importPath?`: ``null`` \| `string` ; `isDefault?`: ``null`` \| `boolean` ; `isRelative?`: ``null`` \| `boolean` ; `name`: `string` } ; `dbType?`: ``null`` \| \{ `name`: `string` } ; `kind?`: ``null`` \| ``"custom"`` \| ``"customComparable"`` \| ``"enum"`` \| ``"customInt"`` \| ``"customDouble"`` \| ``"customUuid"`` \| ``"customLocalDate"`` \| ``"customLocalTime"`` \| ``"customLocalDateTime"`` ; `tsType?`: ``null`` \| \{ `importPath?`: ``null`` \| `string` ; `isDefault?`: ``null`` \| `boolean` ; `isRelative?`: ``null`` \| `boolean` ; `name`: `string` } } }
7575

7676
Can be used to customize the field name or type mapping
7777
in the generated field.
@@ -84,9 +84,7 @@ z.TypeOf.generatedField
8484

8585
#### Defined in
8686

87-
[src/field-mappings.ts:124](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L124)
88-
89-
[src/field-mappings.ts:124](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L124)
87+
[src/field-mappings.ts:124](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/field-mappings.ts#L124)
9088

9189
___
9290

@@ -102,4 +100,4 @@ z.TypeOf.tableName
102100

103101
#### Defined in
104102

105-
[src/field-mappings.ts:108](https://github.com/lorefnon/ts-sql-codegen/blob/b77777f/src/field-mappings.ts#L108)
103+
[src/field-mappings.ts:108](https://github.com/lorefnon/ts-sql-codegen/blob/e58eed00df9c6d2d18a73ca44cce2dac9ee007b5/src/field-mappings.ts#L108)

0 commit comments

Comments
 (0)