Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implements Sqlite 'WITHOUT ROWID' table modifier (#4688)
* feat: implements Sqlite 'WITHOUT ROWID' table modifier This new feature adds a 'withoutRowid' option to EntityOptions in order to enable Sqlite 'WITHOUT ROWID' modifier to the 'CREATE TABLE' statement. See https://www.sqlite.org/withoutrowid.html Closes: #3330 * style: adding semicolon and space complained by linter adding semicolons and spaces complained by linter
- Loading branch information
Showing
7 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { PrimaryColumn } from "../../../../src/decorator/columns/PrimaryColumn"; | ||
import { Entity } from "../../../../src/decorator/entity/Entity"; | ||
|
||
@Entity() | ||
export class Book { | ||
|
||
@PrimaryColumn() | ||
ean: string; | ||
|
||
} | ||
|
||
@Entity({ withoutRowid: true }) | ||
export class Book2 { | ||
|
||
@PrimaryColumn() | ||
ean: string; | ||
|
||
} | ||
|