diff --git a/README.md b/README.md index 5a2a102..2c061f6 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,13 @@ Usage: pg-typegen [options] Options: -V, --version output the version number - -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") - -s, --schema schema (default: "public") - -h, --header
header content (default: "") - -o, --output file output path (default: "stdout") + -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") + -s, --schema schema (default: "public") + -h, --header
header content (default: "") + -o, --output file output path (default: "stdout") -e, --exclude excluded tables and enums as comma separated string e.g. knex_migrations,knex_migrations_lock (default: []) --type use type definitions instead of interfaces in generated output (default: false) - --noSemi, --no-semicolons omit semicolons in generated types (default: false) + --semicolons use semicolons in generated types (default: false) --ssl use ssl (default: false) --optionals use optionals "?" instead of null (default: false) --comments generate table and column comments (default: false) diff --git a/cjs/src/index.js b/cjs/src/index.js index 67cc87f..401b4ff 100644 --- a/cjs/src/index.js +++ b/cjs/src/index.js @@ -19,6 +19,7 @@ const options = { ssl: { type: 'boolean' }, optionals: { type: 'boolean' }, comments: { type: 'boolean' }, + semicolons: { type: 'boolean' }, bigint: { type: 'boolean' }, noSemi: { type: 'boolean' }, 'no-semicolons': { type: 'boolean' }, @@ -35,7 +36,7 @@ const defaultOptions = { output: 'stdout', exclude: [], type: false, - semicolons: true, + semicolons: false, ssl: false, optionals: false, comments: false, @@ -52,13 +53,13 @@ const help = `Usage: pg-typegen [options] Options: -V, --version output the version number - -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") - -s, --schema schema (default: "public") - -h, --header
header content (default: "") - -o, --output file output path (default: "stdout") + -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") + -s, --schema schema (default: "public") + -h, --header
header content (default: "") + -o, --output file output path (default: "stdout") -e, --exclude excluded tables and enums as comma separated string e.g. knex_migrations,knex_migrations_lock (default: []) --type use type definitions instead of interfaces in generated output (default: false) - --noSemi, --no-semicolons omit semicolons in generated types (default: false) + --semicolons use semicolons in generated types (default: false) --ssl use ssl (default: false) --optionals use optionals "?" instead of null (default: false) --comments generate table and column comments (default: false) @@ -122,7 +123,7 @@ if (require.main === module) { output: opts.output, exclude: opts.exclude ? opts.exclude.split(',').map(e => e.trim()).filter(Boolean) : [], type: opts.type, - semicolons: !(opts.noSemi === true || opts['no-semicolons'] === true), + semicolons: opts.semicolons === true || !(opts.noSemi === true || opts['no-semicolons'] === true), ssl: opts.ssl, optionals: opts.optionals, comments: opts.comments, diff --git a/cjs/test/cli.js b/cjs/test/cli.js index e8c6e2a..abbb625 100644 --- a/cjs/test/cli.js +++ b/cjs/test/cli.js @@ -227,6 +227,26 @@ t.test('generates types with no-semicolons option', t => { }) }) +t.test('generates types with semicolons option', t => { + t.plan(1) + + const child = childProcess.spawn(process.execPath, [path.join(__dirname, '..', 'src', 'index.js'), connection, ssl ? '--ssl' : '', '--semicolons'], { + cwd: __dirname, + env: process.env, + stdio: ['ignore', 'pipe', 'pipe'], + detached: false + }) + + const result = { data: '' } + child.stdout.on('data', data => { + result.data += data.toString() + }) + + child.on('close', () => { + t.matchSnapshot(result.data) + }) +}) + t.test('generates types with bigint option', t => { t.plan(1) diff --git a/src/index.js b/src/index.js index dbe112a..4cfd05f 100755 --- a/src/index.js +++ b/src/index.js @@ -20,6 +20,7 @@ const options = { ssl: { type: 'boolean' }, optionals: { type: 'boolean' }, comments: { type: 'boolean' }, + semicolons: { type: 'boolean' }, bigint: { type: 'boolean' }, noSemi: { type: 'boolean' }, 'no-semicolons': { type: 'boolean' }, @@ -36,7 +37,7 @@ const defaultOptions = { output: 'stdout', exclude: [], type: false, - semicolons: true, + semicolons: false, ssl: false, optionals: false, comments: false, @@ -53,13 +54,13 @@ const help = `Usage: pg-typegen [options] Options: -V, --version output the version number - -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") - -s, --schema schema (default: "public") - -h, --header
header content (default: "") - -o, --output file output path (default: "stdout") + -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") + -s, --schema schema (default: "public") + -h, --header
header content (default: "") + -o, --output file output path (default: "stdout") -e, --exclude excluded tables and enums as comma separated string e.g. knex_migrations,knex_migrations_lock (default: []) --type use type definitions instead of interfaces in generated output (default: false) - --noSemi, --no-semicolons omit semicolons in generated types (default: false) + --semicolons use semicolons in generated types (default: false) --ssl use ssl (default: false) --optionals use optionals "?" instead of null (default: false) --comments generate table and column comments (default: false) @@ -123,7 +124,7 @@ if (import.meta.url === pathToFileURL(process.argv[1]).href) { output: opts.output, exclude: opts.exclude ? opts.exclude.split(',').map(e => e.trim()).filter(Boolean) : [], type: opts.type, - semicolons: !(opts.noSemi === true || opts['no-semicolons'] === true), + semicolons: opts.semicolons === true || !(opts.noSemi === true || opts['no-semicolons'] === true), ssl: opts.ssl, optionals: opts.optionals, comments: opts.comments, diff --git a/tap-snapshots/cjs/test/cli.js.test.cjs b/tap-snapshots/cjs/test/cli.js.test.cjs index f866cda..d617930 100644 --- a/tap-snapshots/cjs/test/cli.js.test.cjs +++ b/tap-snapshots/cjs/test/cli.js.test.cjs @@ -1737,6 +1737,177 @@ export interface UserEntity { }; +` + +exports['cjs/test/cli.js TAP generates types with semicolons option > must match snapshot 1'] = ` +export enum DeliciousKebab { + 'big-mix' = 'big-mix', + mix = 'mix', +} + +export enum Fruits { + apple = 'apple', + banana = 'banana', + orange = 'orange', +} + +export enum SnakesOn { + a_plane = 'a_plane', +} + +export interface AddressEntity { + id: number; +}; + +export interface HistoryEntity { + id: number; +}; + +export interface KebabTestEntity { + id: number; +}; + +export interface MaterializedItemEntity { + test: number | null; + test_array: Array | null; + test_text: string | null; + test_timestamp: Date | null; +}; + +export interface MaterializedOtherItemEntity { + test: number | null; + test_text: string | null; +}; + +export interface SnakeTestEntity { + id: number; +}; + +export interface SomeViewEntity { + test: number | null; + test_text: string | null; +}; + +export interface TypeEntity { + avatar_darren: Array | null; + avatar_ernestina: string; + avatar_mark: Array | null; + avatar_myah: Array; + avatar_rozella: Array; + camelCase: boolean | null; + category_amari: string; + category_april: Array; + category_buddy: Array | null; + category_clementine: number | null; + category_marcelle: Date | null; + category_roberta: boolean | null; + category_trent: any | null; + category_viola: string; + comment_cali: string; + comment_delilah: Array | null; + comment_easter: Date | null; + comment_ella: string; + comment_myles: string; + comment_rocio: string | null; + createdat_hulda: any; + createdat_pansy: Array | null; + email_andres: Date; + email_cleveland: string | null; + email_keaton: Array | null; + email_lucio: string | null; + email_paris: string; + email_paula: string | null; + email_ressie: string; + fruit_a: Fruits | null; + fruit_b: Fruits; + group_abigayle: Array; + group_gabe: Array | null; + group_jay: Array; + group_jedediah: Array; + group_shanny: Date; + group_toby: string; + group_ulices: Array | null; + id_gay: string; + id_hailee: any; + id_helen: Array | null; + id_ike: Array; + id_joan: Array | null; + id_karelle: string | null; + id_lavern: Date; + id_margarita: string | null; + id_maximilian: Array; + id_william: Array; + id_wilmer: Array | null; + 'kebab-a': DeliciousKebab | null; + 'kebab-b': DeliciousKebab; + name_amara: string | null; + name_brionna: number; + name_enoch: string; + name_jermain: Array | null; + name_marielle: string | null; + name_myrtle: Array | null; + name_santos: Array; + name_skye: string | null; + name_stephanie: boolean; + password_alessia: Array | null; + password_camylle: Array; + password_elenora: number | null; + password_felton: Array | null; + password_korey: number; + password_murphy: Array | null; + password_vladimir: number | null; + phone_angelo: string; + phone_colten: number; + phone_erling: Array | null; + phone_johanna: Array | null; + phone_kendall: Array; + phone_keyshawn: string | null; + phone_maryam: string | null; + phone_osvaldo: Array; + phone_rupert: any | null; + snakes_on_a: SnakesOn | null; + snakes_on_b: SnakesOn; + status_amalia: number; + status_angelica: Array | null; + status_cade: Array; + status_lori: string | null; + status_ricky: number; + status_sid: Array | null; + title_aidan: Date | null; + title_alexzander: string; + title_haylee: Array | null; + title_ilene: Array; + title_vicenta: string | null; + title_vivienne: Array; + token_adella: Array; + token_hermann: Array; + token_kenyon: Array; + token_marianna: Array | null; + token_rubye: string; + token_ryley: string | null; + token_zora: Array; + updatedat_aaliyah: number | null; + updatedat_abe: Array | null; + updatedat_brett: Array | null; + updatedat_cedrick: Array; + updatedat_derick: Array; + updatedat_eli: Array; + updatedat_ewell: Array; + updatedat_laura: Array | null; + updatedat_melody: Array; + updatedat_rossie: number | null; +}; + +export interface UserEntity { + id: number; + name: string | null; + name2: string; + name3: string; + other_id: number; + other_primary_id: number; +}; + + ` exports['cjs/test/cli.js TAP generates types with types option > must match snapshot 1'] = ` @@ -1915,13 +2086,13 @@ Usage: pg-typegen [options] Options: -V, --version output the version number - -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") - -s, --schema schema (default: "public") - -h, --header
header content (default: "") - -o, --output file output path (default: "stdout") + -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") + -s, --schema schema (default: "public") + -h, --header
header content (default: "") + -o, --output file output path (default: "stdout") -e, --exclude excluded tables and enums as comma separated string e.g. knex_migrations,knex_migrations_lock (default: []) --type use type definitions instead of interfaces in generated output (default: false) - --noSemi, --no-semicolons omit semicolons in generated types (default: false) + --semicolons use semicolons in generated types (default: false) --ssl use ssl (default: false) --optionals use optionals "?" instead of null (default: false) --comments generate table and column comments (default: false) @@ -1942,13 +2113,13 @@ Usage: pg-typegen [options] Options: -V, --version output the version number - -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") - -s, --schema schema (default: "public") - -h, --header
header content (default: "") - -o, --output file output path (default: "stdout") + -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") + -s, --schema schema (default: "public") + -h, --header
header content (default: "") + -o, --output file output path (default: "stdout") -e, --exclude excluded tables and enums as comma separated string e.g. knex_migrations,knex_migrations_lock (default: []) --type use type definitions instead of interfaces in generated output (default: false) - --noSemi, --no-semicolons omit semicolons in generated types (default: false) + --semicolons use semicolons in generated types (default: false) --ssl use ssl (default: false) --optionals use optionals "?" instead of null (default: false) --comments generate table and column comments (default: false) diff --git a/tap-snapshots/cjs/test/pg-typegen.js.test.cjs b/tap-snapshots/cjs/test/pg-typegen.js.test.cjs index 0557357..aa501c6 100644 --- a/tap-snapshots/cjs/test/pg-typegen.js.test.cjs +++ b/tap-snapshots/cjs/test/pg-typegen.js.test.cjs @@ -1357,291 +1357,291 @@ Object { } export interface AddressEntity { - id: number; - }; + id: number + } export interface AddressInsertEntity { - id: number; - }; + id: number + } export interface HistoryEntity { - id: number; - }; + id: number + } export interface HistoryInsertEntity { - id: number; - }; + id: number + } export interface KebabTestEntity { - id: number; - }; + id: number + } export interface KebabTestInsertEntity { - id: number; - }; + id: number + } export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; - }; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null + } export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; - }; + test: number | null + test_text: string | null + } export interface SnakeTestEntity { - id: number; - }; + id: number + } export interface SnakeTestInsertEntity { - id: number; - }; + id: number + } export interface SomeViewEntity { - test: number | null; - test_text: string | null; - }; + test: number | null + test_text: string | null + } export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; - }; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null + } export interface TypeInsertEntity { - avatar_darren?: Array | null; - avatar_ernestina: string; - avatar_mark?: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase?: boolean | null; - category_amari: string; - category_april: Array; - category_buddy?: Array | null; - category_clementine?: number | null; - category_marcelle?: Date | null; - category_roberta?: boolean | null; - category_trent?: any | null; - category_viola: string; - comment_cali: string; - comment_delilah?: Array | null; - comment_easter?: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio?: string | null; - createdat_hulda: any; - createdat_pansy?: Array | null; - email_andres: Date; - email_cleveland?: string | null; - email_keaton?: Array | null; - email_lucio?: string | null; - email_paris: string; - email_paula?: string | null; - email_ressie: string; - fruit_a?: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe?: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices?: Array | null; - id_gay: string; - id_hailee: any; - id_helen?: Array | null; - id_ike: Array; - id_joan?: Array | null; - id_karelle?: string | null; - id_lavern: Date; - id_margarita?: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer?: Array | null; - 'kebab-a'?: DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara?: string | null; - name_brionna: number; - name_enoch: string; - name_jermain?: Array | null; - name_marielle?: string | null; - name_myrtle?: Array | null; - name_santos: Array; - name_skye?: string | null; - name_stephanie: boolean; - password_alessia?: Array | null; - password_camylle: Array; - password_elenora?: number | null; - password_felton?: Array | null; - password_korey: number; - password_murphy?: Array | null; - password_vladimir?: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling?: Array | null; - phone_johanna?: Array | null; - phone_kendall: Array; - phone_keyshawn?: string | null; - phone_maryam?: string | null; - phone_osvaldo: Array; - phone_rupert?: any | null; - snakes_on_a?: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica?: Array | null; - status_cade: Array; - status_lori?: string | null; - status_ricky: number; - status_sid?: Array | null; - title_aidan?: Date | null; - title_alexzander: string; - title_haylee?: Array | null; - title_ilene: Array; - title_vicenta?: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna?: Array | null; - token_rubye: string; - token_ryley?: string | null; - token_zora: Array; - updatedat_aaliyah?: number | null; - updatedat_abe?: Array | null; - updatedat_brett?: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura?: Array | null; - updatedat_melody: Array; - updatedat_rossie?: number | null; - }; + avatar_darren?: Array | null + avatar_ernestina: string + avatar_mark?: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase?: boolean | null + category_amari: string + category_april: Array + category_buddy?: Array | null + category_clementine?: number | null + category_marcelle?: Date | null + category_roberta?: boolean | null + category_trent?: any | null + category_viola: string + comment_cali: string + comment_delilah?: Array | null + comment_easter?: Date | null + comment_ella: string + comment_myles: string + comment_rocio?: string | null + createdat_hulda: any + createdat_pansy?: Array | null + email_andres: Date + email_cleveland?: string | null + email_keaton?: Array | null + email_lucio?: string | null + email_paris: string + email_paula?: string | null + email_ressie: string + fruit_a?: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe?: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices?: Array | null + id_gay: string + id_hailee: any + id_helen?: Array | null + id_ike: Array + id_joan?: Array | null + id_karelle?: string | null + id_lavern: Date + id_margarita?: string | null + id_maximilian: Array + id_william: Array + id_wilmer?: Array | null + 'kebab-a'?: DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara?: string | null + name_brionna: number + name_enoch: string + name_jermain?: Array | null + name_marielle?: string | null + name_myrtle?: Array | null + name_santos: Array + name_skye?: string | null + name_stephanie: boolean + password_alessia?: Array | null + password_camylle: Array + password_elenora?: number | null + password_felton?: Array | null + password_korey: number + password_murphy?: Array | null + password_vladimir?: number | null + phone_angelo: string + phone_colten: number + phone_erling?: Array | null + phone_johanna?: Array | null + phone_kendall: Array + phone_keyshawn?: string | null + phone_maryam?: string | null + phone_osvaldo: Array + phone_rupert?: any | null + snakes_on_a?: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica?: Array | null + status_cade: Array + status_lori?: string | null + status_ricky: number + status_sid?: Array | null + title_aidan?: Date | null + title_alexzander: string + title_haylee?: Array | null + title_ilene: Array + title_vicenta?: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna?: Array | null + token_rubye: string + token_ryley?: string | null + token_zora: Array + updatedat_aaliyah?: number | null + updatedat_abe?: Array | null + updatedat_brett?: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura?: Array | null + updatedat_melody: Array + updatedat_rossie?: number | null + } export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; - }; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number + } export interface UserInsertEntity { - id?: number; - name?: string | null; - name2?: string; - name3: string; - other_id?: number; - other_primary_id?: number; - }; + id?: number + name?: string | null + name2?: string + name3: string + other_id?: number + other_primary_id?: number + } ), } @@ -1664,156 +1664,156 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; -}; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number +} ` @@ -1834,156 +1834,156 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; -}; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number +} ` @@ -2008,169 +2008,169 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { /** * PRIMARY KEY */ - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} /** * this is the users table */ export interface UserEntity { - id: number; + id: number /** * Very long long long long long long long long long long long long long long long long long long long long long comment */ - name: string | null; - name2: string; - name3: string; - other_id: number; + name: string | null + name2: string + name3: string + other_id: number /** * This is the user identifier number * PRIMARY KEY */ - other_primary_id: number; -}; + other_primary_id: number +} ` @@ -2191,317 +2191,317 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface AddressInsertEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface HistoryInsertEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface KebabTestInsertEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { /** * PRIMARY KEY */ - id: number; -}; + id: number +} export interface SnakeTestInsertEntity { /** * PRIMARY KEY */ - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface TypeInsertEntity { - avatar_darren?: Array | null; - avatar_ernestina: string; - avatar_mark?: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase?: boolean | null; - category_amari: string; - category_april: Array; - category_buddy?: Array | null; - category_clementine?: number | null; - category_marcelle?: Date | null; - category_roberta?: boolean | null; - category_trent?: any | null; - category_viola: string; - comment_cali: string; - comment_delilah?: Array | null; - comment_easter?: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio?: string | null; - createdat_hulda: any; - createdat_pansy?: Array | null; - email_andres: Date; - email_cleveland?: string | null; - email_keaton?: Array | null; - email_lucio?: string | null; - email_paris: string; - email_paula?: string | null; - email_ressie: string; - fruit_a?: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe?: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices?: Array | null; - id_gay: string; - id_hailee: any; - id_helen?: Array | null; - id_ike: Array; - id_joan?: Array | null; - id_karelle?: string | null; - id_lavern: Date; - id_margarita?: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer?: Array | null; - 'kebab-a'?: DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara?: string | null; - name_brionna: number; - name_enoch: string; - name_jermain?: Array | null; - name_marielle?: string | null; - name_myrtle?: Array | null; - name_santos: Array; - name_skye?: string | null; - name_stephanie: boolean; - password_alessia?: Array | null; - password_camylle: Array; - password_elenora?: number | null; - password_felton?: Array | null; - password_korey: number; - password_murphy?: Array | null; - password_vladimir?: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling?: Array | null; - phone_johanna?: Array | null; - phone_kendall: Array; - phone_keyshawn?: string | null; - phone_maryam?: string | null; - phone_osvaldo: Array; - phone_rupert?: any | null; - snakes_on_a?: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica?: Array | null; - status_cade: Array; - status_lori?: string | null; - status_ricky: number; - status_sid?: Array | null; - title_aidan?: Date | null; - title_alexzander: string; - title_haylee?: Array | null; - title_ilene: Array; - title_vicenta?: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna?: Array | null; - token_rubye: string; - token_ryley?: string | null; - token_zora: Array; - updatedat_aaliyah?: number | null; - updatedat_abe?: Array | null; - updatedat_brett?: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura?: Array | null; - updatedat_melody: Array; - updatedat_rossie?: number | null; -}; + avatar_darren?: Array | null + avatar_ernestina: string + avatar_mark?: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase?: boolean | null + category_amari: string + category_april: Array + category_buddy?: Array | null + category_clementine?: number | null + category_marcelle?: Date | null + category_roberta?: boolean | null + category_trent?: any | null + category_viola: string + comment_cali: string + comment_delilah?: Array | null + comment_easter?: Date | null + comment_ella: string + comment_myles: string + comment_rocio?: string | null + createdat_hulda: any + createdat_pansy?: Array | null + email_andres: Date + email_cleveland?: string | null + email_keaton?: Array | null + email_lucio?: string | null + email_paris: string + email_paula?: string | null + email_ressie: string + fruit_a?: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe?: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices?: Array | null + id_gay: string + id_hailee: any + id_helen?: Array | null + id_ike: Array + id_joan?: Array | null + id_karelle?: string | null + id_lavern: Date + id_margarita?: string | null + id_maximilian: Array + id_william: Array + id_wilmer?: Array | null + 'kebab-a'?: DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara?: string | null + name_brionna: number + name_enoch: string + name_jermain?: Array | null + name_marielle?: string | null + name_myrtle?: Array | null + name_santos: Array + name_skye?: string | null + name_stephanie: boolean + password_alessia?: Array | null + password_camylle: Array + password_elenora?: number | null + password_felton?: Array | null + password_korey: number + password_murphy?: Array | null + password_vladimir?: number | null + phone_angelo: string + phone_colten: number + phone_erling?: Array | null + phone_johanna?: Array | null + phone_kendall: Array + phone_keyshawn?: string | null + phone_maryam?: string | null + phone_osvaldo: Array + phone_rupert?: any | null + snakes_on_a?: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica?: Array | null + status_cade: Array + status_lori?: string | null + status_ricky: number + status_sid?: Array | null + title_aidan?: Date | null + title_alexzander: string + title_haylee?: Array | null + title_ilene: Array + title_vicenta?: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna?: Array | null + token_rubye: string + token_ryley?: string | null + token_zora: Array + updatedat_aaliyah?: number | null + updatedat_abe?: Array | null + updatedat_brett?: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura?: Array | null + updatedat_melody: Array + updatedat_rossie?: number | null +} /** * this is the users table */ export interface UserEntity { - id: number; + id: number /** * Very long long long long long long long long long long long long long long long long long long long long long comment */ - name: string | null; - name2: string; - name3: string; - other_id: number; + name: string | null + name2: string + name3: string + other_id: number /** * This is the user identifier number * PRIMARY KEY */ - other_primary_id: number; -}; + other_primary_id: number +} /** * this is the users table */ export interface UserInsertEntity { - id?: number; + id?: number /** * Very long long long long long long long long long long long long long long long long long long long long long comment */ - name?: string | null; - name2?: string; - name3: string; - other_id?: number; + name?: string | null + name2?: string + name3: string + other_id?: number /** * This is the user identifier number * PRIMARY KEY */ - other_primary_id?: number; -}; + other_primary_id?: number +} ` @@ -2522,291 +2522,291 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface AddressInsertEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface HistoryInsertEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface KebabTestInsertEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { - id: number; -}; + id: number +} export interface SnakeTestInsertEntity { - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface TypeInsertEntity { - avatar_darren?: Array | null; - avatar_ernestina: string; - avatar_mark?: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase?: boolean | null; - category_amari: string; - category_april: Array; - category_buddy?: Array | null; - category_clementine?: number | null; - category_marcelle?: Date | null; - category_roberta?: boolean | null; - category_trent?: any | null; - category_viola: string; - comment_cali: string; - comment_delilah?: Array | null; - comment_easter?: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio?: string | null; - createdat_hulda: any; - createdat_pansy?: Array | null; - email_andres: Date; - email_cleveland?: string | null; - email_keaton?: Array | null; - email_lucio?: string | null; - email_paris: string; - email_paula?: string | null; - email_ressie: string; - fruit_a?: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe?: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices?: Array | null; - id_gay: string; - id_hailee: any; - id_helen?: Array | null; - id_ike: Array; - id_joan?: Array | null; - id_karelle?: string | null; - id_lavern: Date; - id_margarita?: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer?: Array | null; - 'kebab-a'?: DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara?: string | null; - name_brionna: number; - name_enoch: string; - name_jermain?: Array | null; - name_marielle?: string | null; - name_myrtle?: Array | null; - name_santos: Array; - name_skye?: string | null; - name_stephanie: boolean; - password_alessia?: Array | null; - password_camylle: Array; - password_elenora?: number | null; - password_felton?: Array | null; - password_korey: number; - password_murphy?: Array | null; - password_vladimir?: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling?: Array | null; - phone_johanna?: Array | null; - phone_kendall: Array; - phone_keyshawn?: string | null; - phone_maryam?: string | null; - phone_osvaldo: Array; - phone_rupert?: any | null; - snakes_on_a?: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica?: Array | null; - status_cade: Array; - status_lori?: string | null; - status_ricky: number; - status_sid?: Array | null; - title_aidan?: Date | null; - title_alexzander: string; - title_haylee?: Array | null; - title_ilene: Array; - title_vicenta?: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna?: Array | null; - token_rubye: string; - token_ryley?: string | null; - token_zora: Array; - updatedat_aaliyah?: number | null; - updatedat_abe?: Array | null; - updatedat_brett?: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura?: Array | null; - updatedat_melody: Array; - updatedat_rossie?: number | null; -}; + avatar_darren?: Array | null + avatar_ernestina: string + avatar_mark?: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase?: boolean | null + category_amari: string + category_april: Array + category_buddy?: Array | null + category_clementine?: number | null + category_marcelle?: Date | null + category_roberta?: boolean | null + category_trent?: any | null + category_viola: string + comment_cali: string + comment_delilah?: Array | null + comment_easter?: Date | null + comment_ella: string + comment_myles: string + comment_rocio?: string | null + createdat_hulda: any + createdat_pansy?: Array | null + email_andres: Date + email_cleveland?: string | null + email_keaton?: Array | null + email_lucio?: string | null + email_paris: string + email_paula?: string | null + email_ressie: string + fruit_a?: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe?: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices?: Array | null + id_gay: string + id_hailee: any + id_helen?: Array | null + id_ike: Array + id_joan?: Array | null + id_karelle?: string | null + id_lavern: Date + id_margarita?: string | null + id_maximilian: Array + id_william: Array + id_wilmer?: Array | null + 'kebab-a'?: DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara?: string | null + name_brionna: number + name_enoch: string + name_jermain?: Array | null + name_marielle?: string | null + name_myrtle?: Array | null + name_santos: Array + name_skye?: string | null + name_stephanie: boolean + password_alessia?: Array | null + password_camylle: Array + password_elenora?: number | null + password_felton?: Array | null + password_korey: number + password_murphy?: Array | null + password_vladimir?: number | null + phone_angelo: string + phone_colten: number + phone_erling?: Array | null + phone_johanna?: Array | null + phone_kendall: Array + phone_keyshawn?: string | null + phone_maryam?: string | null + phone_osvaldo: Array + phone_rupert?: any | null + snakes_on_a?: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica?: Array | null + status_cade: Array + status_lori?: string | null + status_ricky: number + status_sid?: Array | null + title_aidan?: Date | null + title_alexzander: string + title_haylee?: Array | null + title_ilene: Array + title_vicenta?: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna?: Array | null + token_rubye: string + token_ryley?: string | null + token_zora: Array + updatedat_aaliyah?: number | null + updatedat_abe?: Array | null + updatedat_brett?: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura?: Array | null + updatedat_melody: Array + updatedat_rossie?: number | null +} export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; -}; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number +} export interface UserInsertEntity { - id?: number; - name?: string | null; - name2?: string; - name3: string; - other_id?: number; - other_primary_id?: number; -}; + id?: number + name?: string | null + name2?: string + name3: string + other_id?: number + other_primary_id?: number +} ` diff --git a/tap-snapshots/test/cli.js.test.cjs b/tap-snapshots/test/cli.js.test.cjs index d07850a..ef496b1 100644 --- a/tap-snapshots/test/cli.js.test.cjs +++ b/tap-snapshots/test/cli.js.test.cjs @@ -1737,6 +1737,177 @@ export interface UserEntity { }; +` + +exports['test/cli.js TAP generates types with semicolons option > must match snapshot 1'] = ` +export enum DeliciousKebab { + 'big-mix' = 'big-mix', + mix = 'mix', +} + +export enum Fruits { + apple = 'apple', + banana = 'banana', + orange = 'orange', +} + +export enum SnakesOn { + a_plane = 'a_plane', +} + +export interface AddressEntity { + id: number; +}; + +export interface HistoryEntity { + id: number; +}; + +export interface KebabTestEntity { + id: number; +}; + +export interface MaterializedItemEntity { + test: number | null; + test_array: Array | null; + test_text: string | null; + test_timestamp: Date | null; +}; + +export interface MaterializedOtherItemEntity { + test: number | null; + test_text: string | null; +}; + +export interface SnakeTestEntity { + id: number; +}; + +export interface SomeViewEntity { + test: number | null; + test_text: string | null; +}; + +export interface TypeEntity { + avatar_darren: Array | null; + avatar_ernestina: string; + avatar_mark: Array | null; + avatar_myah: Array; + avatar_rozella: Array; + camelCase: boolean | null; + category_amari: string; + category_april: Array; + category_buddy: Array | null; + category_clementine: number | null; + category_marcelle: Date | null; + category_roberta: boolean | null; + category_trent: any | null; + category_viola: string; + comment_cali: string; + comment_delilah: Array | null; + comment_easter: Date | null; + comment_ella: string; + comment_myles: string; + comment_rocio: string | null; + createdat_hulda: any; + createdat_pansy: Array | null; + email_andres: Date; + email_cleveland: string | null; + email_keaton: Array | null; + email_lucio: string | null; + email_paris: string; + email_paula: string | null; + email_ressie: string; + fruit_a: Fruits | null; + fruit_b: Fruits; + group_abigayle: Array; + group_gabe: Array | null; + group_jay: Array; + group_jedediah: Array; + group_shanny: Date; + group_toby: string; + group_ulices: Array | null; + id_gay: string; + id_hailee: any; + id_helen: Array | null; + id_ike: Array; + id_joan: Array | null; + id_karelle: string | null; + id_lavern: Date; + id_margarita: string | null; + id_maximilian: Array; + id_william: Array; + id_wilmer: Array | null; + 'kebab-a': DeliciousKebab | null; + 'kebab-b': DeliciousKebab; + name_amara: string | null; + name_brionna: number; + name_enoch: string; + name_jermain: Array | null; + name_marielle: string | null; + name_myrtle: Array | null; + name_santos: Array; + name_skye: string | null; + name_stephanie: boolean; + password_alessia: Array | null; + password_camylle: Array; + password_elenora: number | null; + password_felton: Array | null; + password_korey: number; + password_murphy: Array | null; + password_vladimir: number | null; + phone_angelo: string; + phone_colten: number; + phone_erling: Array | null; + phone_johanna: Array | null; + phone_kendall: Array; + phone_keyshawn: string | null; + phone_maryam: string | null; + phone_osvaldo: Array; + phone_rupert: any | null; + snakes_on_a: SnakesOn | null; + snakes_on_b: SnakesOn; + status_amalia: number; + status_angelica: Array | null; + status_cade: Array; + status_lori: string | null; + status_ricky: number; + status_sid: Array | null; + title_aidan: Date | null; + title_alexzander: string; + title_haylee: Array | null; + title_ilene: Array; + title_vicenta: string | null; + title_vivienne: Array; + token_adella: Array; + token_hermann: Array; + token_kenyon: Array; + token_marianna: Array | null; + token_rubye: string; + token_ryley: string | null; + token_zora: Array; + updatedat_aaliyah: number | null; + updatedat_abe: Array | null; + updatedat_brett: Array | null; + updatedat_cedrick: Array; + updatedat_derick: Array; + updatedat_eli: Array; + updatedat_ewell: Array; + updatedat_laura: Array | null; + updatedat_melody: Array; + updatedat_rossie: number | null; +}; + +export interface UserEntity { + id: number; + name: string | null; + name2: string; + name3: string; + other_id: number; + other_primary_id: number; +}; + + ` exports['test/cli.js TAP generates types with types option > must match snapshot 1'] = ` @@ -1915,13 +2086,13 @@ Usage: pg-typegen [options] Options: -V, --version output the version number - -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") - -s, --schema schema (default: "public") - -h, --header
header content (default: "") - -o, --output file output path (default: "stdout") + -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") + -s, --schema schema (default: "public") + -h, --header
header content (default: "") + -o, --output file output path (default: "stdout") -e, --exclude excluded tables and enums as comma separated string e.g. knex_migrations,knex_migrations_lock (default: []) --type use type definitions instead of interfaces in generated output (default: false) - --noSemi, --no-semicolons omit semicolons in generated types (default: false) + --semicolons use semicolons in generated types (default: false) --ssl use ssl (default: false) --optionals use optionals "?" instead of null (default: false) --comments generate table and column comments (default: false) @@ -1942,13 +2113,13 @@ Usage: pg-typegen [options] Options: -V, --version output the version number - -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") - -s, --schema schema (default: "public") - -h, --header
header content (default: "") - -o, --output file output path (default: "stdout") + -f, --suffix suffix to append to generated table type, e.g. item -> ItemEntity (default: "Entity") + -s, --schema schema (default: "public") + -h, --header
header content (default: "") + -o, --output file output path (default: "stdout") -e, --exclude excluded tables and enums as comma separated string e.g. knex_migrations,knex_migrations_lock (default: []) --type use type definitions instead of interfaces in generated output (default: false) - --noSemi, --no-semicolons omit semicolons in generated types (default: false) + --semicolons use semicolons in generated types (default: false) --ssl use ssl (default: false) --optionals use optionals "?" instead of null (default: false) --comments generate table and column comments (default: false) diff --git a/tap-snapshots/test/pg-typegen.js.test.cjs b/tap-snapshots/test/pg-typegen.js.test.cjs index 3449681..7e7142a 100644 --- a/tap-snapshots/test/pg-typegen.js.test.cjs +++ b/tap-snapshots/test/pg-typegen.js.test.cjs @@ -1357,291 +1357,291 @@ Object { } export interface AddressEntity { - id: number; - }; + id: number + } export interface AddressInsertEntity { - id: number; - }; + id: number + } export interface HistoryEntity { - id: number; - }; + id: number + } export interface HistoryInsertEntity { - id: number; - }; + id: number + } export interface KebabTestEntity { - id: number; - }; + id: number + } export interface KebabTestInsertEntity { - id: number; - }; + id: number + } export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; - }; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null + } export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; - }; + test: number | null + test_text: string | null + } export interface SnakeTestEntity { - id: number; - }; + id: number + } export interface SnakeTestInsertEntity { - id: number; - }; + id: number + } export interface SomeViewEntity { - test: number | null; - test_text: string | null; - }; + test: number | null + test_text: string | null + } export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; - }; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null + } export interface TypeInsertEntity { - avatar_darren?: Array | null; - avatar_ernestina: string; - avatar_mark?: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase?: boolean | null; - category_amari: string; - category_april: Array; - category_buddy?: Array | null; - category_clementine?: number | null; - category_marcelle?: Date | null; - category_roberta?: boolean | null; - category_trent?: any | null; - category_viola: string; - comment_cali: string; - comment_delilah?: Array | null; - comment_easter?: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio?: string | null; - createdat_hulda: any; - createdat_pansy?: Array | null; - email_andres: Date; - email_cleveland?: string | null; - email_keaton?: Array | null; - email_lucio?: string | null; - email_paris: string; - email_paula?: string | null; - email_ressie: string; - fruit_a?: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe?: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices?: Array | null; - id_gay: string; - id_hailee: any; - id_helen?: Array | null; - id_ike: Array; - id_joan?: Array | null; - id_karelle?: string | null; - id_lavern: Date; - id_margarita?: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer?: Array | null; - 'kebab-a'?: DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara?: string | null; - name_brionna: number; - name_enoch: string; - name_jermain?: Array | null; - name_marielle?: string | null; - name_myrtle?: Array | null; - name_santos: Array; - name_skye?: string | null; - name_stephanie: boolean; - password_alessia?: Array | null; - password_camylle: Array; - password_elenora?: number | null; - password_felton?: Array | null; - password_korey: number; - password_murphy?: Array | null; - password_vladimir?: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling?: Array | null; - phone_johanna?: Array | null; - phone_kendall: Array; - phone_keyshawn?: string | null; - phone_maryam?: string | null; - phone_osvaldo: Array; - phone_rupert?: any | null; - snakes_on_a?: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica?: Array | null; - status_cade: Array; - status_lori?: string | null; - status_ricky: number; - status_sid?: Array | null; - title_aidan?: Date | null; - title_alexzander: string; - title_haylee?: Array | null; - title_ilene: Array; - title_vicenta?: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna?: Array | null; - token_rubye: string; - token_ryley?: string | null; - token_zora: Array; - updatedat_aaliyah?: number | null; - updatedat_abe?: Array | null; - updatedat_brett?: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura?: Array | null; - updatedat_melody: Array; - updatedat_rossie?: number | null; - }; + avatar_darren?: Array | null + avatar_ernestina: string + avatar_mark?: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase?: boolean | null + category_amari: string + category_april: Array + category_buddy?: Array | null + category_clementine?: number | null + category_marcelle?: Date | null + category_roberta?: boolean | null + category_trent?: any | null + category_viola: string + comment_cali: string + comment_delilah?: Array | null + comment_easter?: Date | null + comment_ella: string + comment_myles: string + comment_rocio?: string | null + createdat_hulda: any + createdat_pansy?: Array | null + email_andres: Date + email_cleveland?: string | null + email_keaton?: Array | null + email_lucio?: string | null + email_paris: string + email_paula?: string | null + email_ressie: string + fruit_a?: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe?: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices?: Array | null + id_gay: string + id_hailee: any + id_helen?: Array | null + id_ike: Array + id_joan?: Array | null + id_karelle?: string | null + id_lavern: Date + id_margarita?: string | null + id_maximilian: Array + id_william: Array + id_wilmer?: Array | null + 'kebab-a'?: DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara?: string | null + name_brionna: number + name_enoch: string + name_jermain?: Array | null + name_marielle?: string | null + name_myrtle?: Array | null + name_santos: Array + name_skye?: string | null + name_stephanie: boolean + password_alessia?: Array | null + password_camylle: Array + password_elenora?: number | null + password_felton?: Array | null + password_korey: number + password_murphy?: Array | null + password_vladimir?: number | null + phone_angelo: string + phone_colten: number + phone_erling?: Array | null + phone_johanna?: Array | null + phone_kendall: Array + phone_keyshawn?: string | null + phone_maryam?: string | null + phone_osvaldo: Array + phone_rupert?: any | null + snakes_on_a?: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica?: Array | null + status_cade: Array + status_lori?: string | null + status_ricky: number + status_sid?: Array | null + title_aidan?: Date | null + title_alexzander: string + title_haylee?: Array | null + title_ilene: Array + title_vicenta?: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna?: Array | null + token_rubye: string + token_ryley?: string | null + token_zora: Array + updatedat_aaliyah?: number | null + updatedat_abe?: Array | null + updatedat_brett?: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura?: Array | null + updatedat_melody: Array + updatedat_rossie?: number | null + } export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; - }; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number + } export interface UserInsertEntity { - id?: number; - name?: string | null; - name2?: string; - name3: string; - other_id?: number; - other_primary_id?: number; - }; + id?: number + name?: string | null + name2?: string + name3: string + other_id?: number + other_primary_id?: number + } ), } @@ -1664,156 +1664,156 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; -}; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number +} ` @@ -1834,156 +1834,156 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; -}; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number +} ` @@ -2008,169 +2008,169 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { /** * PRIMARY KEY */ - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} /** * this is the users table */ export interface UserEntity { - id: number; + id: number /** * Very long long long long long long long long long long long long long long long long long long long long long comment */ - name: string | null; - name2: string; - name3: string; - other_id: number; + name: string | null + name2: string + name3: string + other_id: number /** * This is the user identifier number * PRIMARY KEY */ - other_primary_id: number; -}; + other_primary_id: number +} ` @@ -2191,317 +2191,317 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface AddressInsertEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface HistoryInsertEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface KebabTestInsertEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { /** * PRIMARY KEY */ - id: number; -}; + id: number +} export interface SnakeTestInsertEntity { /** * PRIMARY KEY */ - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface TypeInsertEntity { - avatar_darren?: Array | null; - avatar_ernestina: string; - avatar_mark?: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase?: boolean | null; - category_amari: string; - category_april: Array; - category_buddy?: Array | null; - category_clementine?: number | null; - category_marcelle?: Date | null; - category_roberta?: boolean | null; - category_trent?: any | null; - category_viola: string; - comment_cali: string; - comment_delilah?: Array | null; - comment_easter?: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio?: string | null; - createdat_hulda: any; - createdat_pansy?: Array | null; - email_andres: Date; - email_cleveland?: string | null; - email_keaton?: Array | null; - email_lucio?: string | null; - email_paris: string; - email_paula?: string | null; - email_ressie: string; - fruit_a?: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe?: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices?: Array | null; - id_gay: string; - id_hailee: any; - id_helen?: Array | null; - id_ike: Array; - id_joan?: Array | null; - id_karelle?: string | null; - id_lavern: Date; - id_margarita?: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer?: Array | null; - 'kebab-a'?: DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara?: string | null; - name_brionna: number; - name_enoch: string; - name_jermain?: Array | null; - name_marielle?: string | null; - name_myrtle?: Array | null; - name_santos: Array; - name_skye?: string | null; - name_stephanie: boolean; - password_alessia?: Array | null; - password_camylle: Array; - password_elenora?: number | null; - password_felton?: Array | null; - password_korey: number; - password_murphy?: Array | null; - password_vladimir?: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling?: Array | null; - phone_johanna?: Array | null; - phone_kendall: Array; - phone_keyshawn?: string | null; - phone_maryam?: string | null; - phone_osvaldo: Array; - phone_rupert?: any | null; - snakes_on_a?: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica?: Array | null; - status_cade: Array; - status_lori?: string | null; - status_ricky: number; - status_sid?: Array | null; - title_aidan?: Date | null; - title_alexzander: string; - title_haylee?: Array | null; - title_ilene: Array; - title_vicenta?: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna?: Array | null; - token_rubye: string; - token_ryley?: string | null; - token_zora: Array; - updatedat_aaliyah?: number | null; - updatedat_abe?: Array | null; - updatedat_brett?: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura?: Array | null; - updatedat_melody: Array; - updatedat_rossie?: number | null; -}; + avatar_darren?: Array | null + avatar_ernestina: string + avatar_mark?: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase?: boolean | null + category_amari: string + category_april: Array + category_buddy?: Array | null + category_clementine?: number | null + category_marcelle?: Date | null + category_roberta?: boolean | null + category_trent?: any | null + category_viola: string + comment_cali: string + comment_delilah?: Array | null + comment_easter?: Date | null + comment_ella: string + comment_myles: string + comment_rocio?: string | null + createdat_hulda: any + createdat_pansy?: Array | null + email_andres: Date + email_cleveland?: string | null + email_keaton?: Array | null + email_lucio?: string | null + email_paris: string + email_paula?: string | null + email_ressie: string + fruit_a?: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe?: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices?: Array | null + id_gay: string + id_hailee: any + id_helen?: Array | null + id_ike: Array + id_joan?: Array | null + id_karelle?: string | null + id_lavern: Date + id_margarita?: string | null + id_maximilian: Array + id_william: Array + id_wilmer?: Array | null + 'kebab-a'?: DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara?: string | null + name_brionna: number + name_enoch: string + name_jermain?: Array | null + name_marielle?: string | null + name_myrtle?: Array | null + name_santos: Array + name_skye?: string | null + name_stephanie: boolean + password_alessia?: Array | null + password_camylle: Array + password_elenora?: number | null + password_felton?: Array | null + password_korey: number + password_murphy?: Array | null + password_vladimir?: number | null + phone_angelo: string + phone_colten: number + phone_erling?: Array | null + phone_johanna?: Array | null + phone_kendall: Array + phone_keyshawn?: string | null + phone_maryam?: string | null + phone_osvaldo: Array + phone_rupert?: any | null + snakes_on_a?: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica?: Array | null + status_cade: Array + status_lori?: string | null + status_ricky: number + status_sid?: Array | null + title_aidan?: Date | null + title_alexzander: string + title_haylee?: Array | null + title_ilene: Array + title_vicenta?: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna?: Array | null + token_rubye: string + token_ryley?: string | null + token_zora: Array + updatedat_aaliyah?: number | null + updatedat_abe?: Array | null + updatedat_brett?: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura?: Array | null + updatedat_melody: Array + updatedat_rossie?: number | null +} /** * this is the users table */ export interface UserEntity { - id: number; + id: number /** * Very long long long long long long long long long long long long long long long long long long long long long comment */ - name: string | null; - name2: string; - name3: string; - other_id: number; + name: string | null + name2: string + name3: string + other_id: number /** * This is the user identifier number * PRIMARY KEY */ - other_primary_id: number; -}; + other_primary_id: number +} /** * this is the users table */ export interface UserInsertEntity { - id?: number; + id?: number /** * Very long long long long long long long long long long long long long long long long long long long long long comment */ - name?: string | null; - name2?: string; - name3: string; - other_id?: number; + name?: string | null + name2?: string + name3: string + other_id?: number /** * This is the user identifier number * PRIMARY KEY */ - other_primary_id?: number; -}; + other_primary_id?: number +} ` @@ -2522,291 +2522,291 @@ export enum SnakesOn { } export interface AddressEntity { - id: number; -}; + id: number +} export interface AddressInsertEntity { - id: number; -}; + id: number +} export interface HistoryEntity { - id: number; -}; + id: number +} export interface HistoryInsertEntity { - id: number; -}; + id: number +} export interface KebabTestEntity { - id: number; -}; + id: number +} export interface KebabTestInsertEntity { - id: number; -}; + id: number +} export interface MaterializedItemEntity { - test: number | null; - test_array: Array | null; - test_text: string | null; - test_timestamp: Date | null; -}; + test: number | null + test_array: Array | null + test_text: string | null + test_timestamp: Date | null +} export interface MaterializedOtherItemEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface SnakeTestEntity { - id: number; -}; + id: number +} export interface SnakeTestInsertEntity { - id: number; -}; + id: number +} export interface SomeViewEntity { - test: number | null; - test_text: string | null; -}; + test: number | null + test_text: string | null +} export interface TypeEntity { - avatar_darren: Array | null; - avatar_ernestina: string; - avatar_mark: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase: boolean | null; - category_amari: string; - category_april: Array; - category_buddy: Array | null; - category_clementine: number | null; - category_marcelle: Date | null; - category_roberta: boolean | null; - category_trent: any | null; - category_viola: string; - comment_cali: string; - comment_delilah: Array | null; - comment_easter: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio: string | null; - createdat_hulda: any; - createdat_pansy: Array | null; - email_andres: Date; - email_cleveland: string | null; - email_keaton: Array | null; - email_lucio: string | null; - email_paris: string; - email_paula: string | null; - email_ressie: string; - fruit_a: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices: Array | null; - id_gay: string; - id_hailee: any; - id_helen: Array | null; - id_ike: Array; - id_joan: Array | null; - id_karelle: string | null; - id_lavern: Date; - id_margarita: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer: Array | null; - 'kebab-a': DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara: string | null; - name_brionna: number; - name_enoch: string; - name_jermain: Array | null; - name_marielle: string | null; - name_myrtle: Array | null; - name_santos: Array; - name_skye: string | null; - name_stephanie: boolean; - password_alessia: Array | null; - password_camylle: Array; - password_elenora: number | null; - password_felton: Array | null; - password_korey: number; - password_murphy: Array | null; - password_vladimir: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling: Array | null; - phone_johanna: Array | null; - phone_kendall: Array; - phone_keyshawn: string | null; - phone_maryam: string | null; - phone_osvaldo: Array; - phone_rupert: any | null; - snakes_on_a: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica: Array | null; - status_cade: Array; - status_lori: string | null; - status_ricky: number; - status_sid: Array | null; - title_aidan: Date | null; - title_alexzander: string; - title_haylee: Array | null; - title_ilene: Array; - title_vicenta: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna: Array | null; - token_rubye: string; - token_ryley: string | null; - token_zora: Array; - updatedat_aaliyah: number | null; - updatedat_abe: Array | null; - updatedat_brett: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura: Array | null; - updatedat_melody: Array; - updatedat_rossie: number | null; -}; + avatar_darren: Array | null + avatar_ernestina: string + avatar_mark: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase: boolean | null + category_amari: string + category_april: Array + category_buddy: Array | null + category_clementine: number | null + category_marcelle: Date | null + category_roberta: boolean | null + category_trent: any | null + category_viola: string + comment_cali: string + comment_delilah: Array | null + comment_easter: Date | null + comment_ella: string + comment_myles: string + comment_rocio: string | null + createdat_hulda: any + createdat_pansy: Array | null + email_andres: Date + email_cleveland: string | null + email_keaton: Array | null + email_lucio: string | null + email_paris: string + email_paula: string | null + email_ressie: string + fruit_a: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices: Array | null + id_gay: string + id_hailee: any + id_helen: Array | null + id_ike: Array + id_joan: Array | null + id_karelle: string | null + id_lavern: Date + id_margarita: string | null + id_maximilian: Array + id_william: Array + id_wilmer: Array | null + 'kebab-a': DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara: string | null + name_brionna: number + name_enoch: string + name_jermain: Array | null + name_marielle: string | null + name_myrtle: Array | null + name_santos: Array + name_skye: string | null + name_stephanie: boolean + password_alessia: Array | null + password_camylle: Array + password_elenora: number | null + password_felton: Array | null + password_korey: number + password_murphy: Array | null + password_vladimir: number | null + phone_angelo: string + phone_colten: number + phone_erling: Array | null + phone_johanna: Array | null + phone_kendall: Array + phone_keyshawn: string | null + phone_maryam: string | null + phone_osvaldo: Array + phone_rupert: any | null + snakes_on_a: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica: Array | null + status_cade: Array + status_lori: string | null + status_ricky: number + status_sid: Array | null + title_aidan: Date | null + title_alexzander: string + title_haylee: Array | null + title_ilene: Array + title_vicenta: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna: Array | null + token_rubye: string + token_ryley: string | null + token_zora: Array + updatedat_aaliyah: number | null + updatedat_abe: Array | null + updatedat_brett: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura: Array | null + updatedat_melody: Array + updatedat_rossie: number | null +} export interface TypeInsertEntity { - avatar_darren?: Array | null; - avatar_ernestina: string; - avatar_mark?: Array | null; - avatar_myah: Array; - avatar_rozella: Array; - camelCase?: boolean | null; - category_amari: string; - category_april: Array; - category_buddy?: Array | null; - category_clementine?: number | null; - category_marcelle?: Date | null; - category_roberta?: boolean | null; - category_trent?: any | null; - category_viola: string; - comment_cali: string; - comment_delilah?: Array | null; - comment_easter?: Date | null; - comment_ella: string; - comment_myles: string; - comment_rocio?: string | null; - createdat_hulda: any; - createdat_pansy?: Array | null; - email_andres: Date; - email_cleveland?: string | null; - email_keaton?: Array | null; - email_lucio?: string | null; - email_paris: string; - email_paula?: string | null; - email_ressie: string; - fruit_a?: Fruits | null; - fruit_b: Fruits; - group_abigayle: Array; - group_gabe?: Array | null; - group_jay: Array; - group_jedediah: Array; - group_shanny: Date; - group_toby: string; - group_ulices?: Array | null; - id_gay: string; - id_hailee: any; - id_helen?: Array | null; - id_ike: Array; - id_joan?: Array | null; - id_karelle?: string | null; - id_lavern: Date; - id_margarita?: string | null; - id_maximilian: Array; - id_william: Array; - id_wilmer?: Array | null; - 'kebab-a'?: DeliciousKebab | null; - 'kebab-b': DeliciousKebab; - name_amara?: string | null; - name_brionna: number; - name_enoch: string; - name_jermain?: Array | null; - name_marielle?: string | null; - name_myrtle?: Array | null; - name_santos: Array; - name_skye?: string | null; - name_stephanie: boolean; - password_alessia?: Array | null; - password_camylle: Array; - password_elenora?: number | null; - password_felton?: Array | null; - password_korey: number; - password_murphy?: Array | null; - password_vladimir?: number | null; - phone_angelo: string; - phone_colten: number; - phone_erling?: Array | null; - phone_johanna?: Array | null; - phone_kendall: Array; - phone_keyshawn?: string | null; - phone_maryam?: string | null; - phone_osvaldo: Array; - phone_rupert?: any | null; - snakes_on_a?: SnakesOn | null; - snakes_on_b: SnakesOn; - status_amalia: number; - status_angelica?: Array | null; - status_cade: Array; - status_lori?: string | null; - status_ricky: number; - status_sid?: Array | null; - title_aidan?: Date | null; - title_alexzander: string; - title_haylee?: Array | null; - title_ilene: Array; - title_vicenta?: string | null; - title_vivienne: Array; - token_adella: Array; - token_hermann: Array; - token_kenyon: Array; - token_marianna?: Array | null; - token_rubye: string; - token_ryley?: string | null; - token_zora: Array; - updatedat_aaliyah?: number | null; - updatedat_abe?: Array | null; - updatedat_brett?: Array | null; - updatedat_cedrick: Array; - updatedat_derick: Array; - updatedat_eli: Array; - updatedat_ewell: Array; - updatedat_laura?: Array | null; - updatedat_melody: Array; - updatedat_rossie?: number | null; -}; + avatar_darren?: Array | null + avatar_ernestina: string + avatar_mark?: Array | null + avatar_myah: Array + avatar_rozella: Array + camelCase?: boolean | null + category_amari: string + category_april: Array + category_buddy?: Array | null + category_clementine?: number | null + category_marcelle?: Date | null + category_roberta?: boolean | null + category_trent?: any | null + category_viola: string + comment_cali: string + comment_delilah?: Array | null + comment_easter?: Date | null + comment_ella: string + comment_myles: string + comment_rocio?: string | null + createdat_hulda: any + createdat_pansy?: Array | null + email_andres: Date + email_cleveland?: string | null + email_keaton?: Array | null + email_lucio?: string | null + email_paris: string + email_paula?: string | null + email_ressie: string + fruit_a?: Fruits | null + fruit_b: Fruits + group_abigayle: Array + group_gabe?: Array | null + group_jay: Array + group_jedediah: Array + group_shanny: Date + group_toby: string + group_ulices?: Array | null + id_gay: string + id_hailee: any + id_helen?: Array | null + id_ike: Array + id_joan?: Array | null + id_karelle?: string | null + id_lavern: Date + id_margarita?: string | null + id_maximilian: Array + id_william: Array + id_wilmer?: Array | null + 'kebab-a'?: DeliciousKebab | null + 'kebab-b': DeliciousKebab + name_amara?: string | null + name_brionna: number + name_enoch: string + name_jermain?: Array | null + name_marielle?: string | null + name_myrtle?: Array | null + name_santos: Array + name_skye?: string | null + name_stephanie: boolean + password_alessia?: Array | null + password_camylle: Array + password_elenora?: number | null + password_felton?: Array | null + password_korey: number + password_murphy?: Array | null + password_vladimir?: number | null + phone_angelo: string + phone_colten: number + phone_erling?: Array | null + phone_johanna?: Array | null + phone_kendall: Array + phone_keyshawn?: string | null + phone_maryam?: string | null + phone_osvaldo: Array + phone_rupert?: any | null + snakes_on_a?: SnakesOn | null + snakes_on_b: SnakesOn + status_amalia: number + status_angelica?: Array | null + status_cade: Array + status_lori?: string | null + status_ricky: number + status_sid?: Array | null + title_aidan?: Date | null + title_alexzander: string + title_haylee?: Array | null + title_ilene: Array + title_vicenta?: string | null + title_vivienne: Array + token_adella: Array + token_hermann: Array + token_kenyon: Array + token_marianna?: Array | null + token_rubye: string + token_ryley?: string | null + token_zora: Array + updatedat_aaliyah?: number | null + updatedat_abe?: Array | null + updatedat_brett?: Array | null + updatedat_cedrick: Array + updatedat_derick: Array + updatedat_eli: Array + updatedat_ewell: Array + updatedat_laura?: Array | null + updatedat_melody: Array + updatedat_rossie?: number | null +} export interface UserEntity { - id: number; - name: string | null; - name2: string; - name3: string; - other_id: number; - other_primary_id: number; -}; + id: number + name: string | null + name2: string + name3: string + other_id: number + other_primary_id: number +} export interface UserInsertEntity { - id?: number; - name?: string | null; - name2?: string; - name3: string; - other_id?: number; - other_primary_id?: number; -}; + id?: number + name?: string | null + name2?: string + name3: string + other_id?: number + other_primary_id?: number +} ` diff --git a/test/cli.js b/test/cli.js index 53173c0..9ff8e21 100644 --- a/test/cli.js +++ b/test/cli.js @@ -230,6 +230,26 @@ t.test('generates types with no-semicolons option', t => { }) }) +t.test('generates types with semicolons option', t => { + t.plan(1) + + const child = childProcess.spawn(process.execPath, [path.join(__dirname, '..', 'src', 'index.js'), connection, ssl ? '--ssl' : '', '--semicolons'], { + cwd: __dirname, + env: process.env, + stdio: ['ignore', 'pipe', 'pipe'], + detached: false + }) + + const result = { data: '' } + child.stdout.on('data', data => { + result.data += data.toString() + }) + + child.on('close', () => { + t.matchSnapshot(result.data) + }) +}) + t.test('generates types with bigint option', t => { t.plan(1)