Skip to content

Commit

Permalink
format pass
Browse files Browse the repository at this point in the history
  • Loading branch information
helloimalastair committed Sep 4, 2023
1 parent 001214f commit 1195920
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ export class Model<T extends Record<string, ModelColumn>> {
);
}

if(this.#withRowId && this.#autoIncrementColumn) {
throw new Error("Options.autoIncrement and Options.withRowId cannot both be set");
if (this.#withRowId && this.#autoIncrementColumn) {
throw new Error(
"Options.autoIncrement and Options.withRowId cannot both be set"
);
}

if (!columns) {
Expand Down Expand Up @@ -158,7 +160,9 @@ export class Model<T extends Record<string, ModelColumn>> {
}
return `CREATE TABLE \`${this.tableName}\` (${columnDefinition.join(
", "
)})${this.#autoIncrementColumn || this.#withRowId ? "" : " WITHOUT ROWID"};`;
)})${
this.#autoIncrementColumn || this.#withRowId ? "" : " WITHOUT ROWID"
};`;
}

/**
Expand Down

0 comments on commit 1195920

Please sign in to comment.