diff --git a/clients/typescript/src/client/model/table.ts b/clients/typescript/src/client/model/table.ts index 8937f47a93..2256e67108 100644 --- a/clients/typescript/src/client/model/table.ts +++ b/clients/typescript/src/client/model/table.ts @@ -202,6 +202,10 @@ export class Table< return includedTables } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ sync>(i?: T): Promise { const validatedInput = this.syncSchema.parse(i ?? {}) const shape = computeShape( @@ -221,6 +225,10 @@ export class Table< * As such, one can compose these methods arbitrarily and then run them inside a single transaction. */ + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async create>( i: SelectSubset> ): Promise> { @@ -232,12 +240,20 @@ export class Table< ) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async createMany>( i: SelectSubset> ): Promise { return this._executor.execute(this._createMany.bind(this, i)) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async findUnique>( i: SelectSubset> ): Promise | null> { @@ -247,12 +263,20 @@ export class Table< ) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ liveUnique>( i: SelectSubset> ): LiveResultContext | null> { return this.makeLiveResult(() => this.findUnique(i), i) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async findFirst< T extends FindInput >( @@ -267,6 +291,10 @@ export class Table< ) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ liveFirst< T extends FindInput >( @@ -278,6 +306,10 @@ export class Table< return this.makeLiveResult(() => this.findFirst(i), i ?? {}) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async findMany< T extends FindInput >( @@ -292,6 +324,10 @@ export class Table< ) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ liveMany< T extends FindInput >( @@ -303,6 +339,10 @@ export class Table< return this.makeLiveResult(() => this.findMany(i), i ?? {}) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async update>( i: SelectSubset> ): Promise> { @@ -311,12 +351,20 @@ export class Table< ) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async updateMany>( i: SelectSubset> ): Promise { return this._executor.execute(this._updateMany.bind(this, i)) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async upsert< T extends UpsertInput >( @@ -330,6 +378,10 @@ export class Table< ) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async delete>( i: SelectSubset> ): Promise> { @@ -338,6 +390,10 @@ export class Table< ) } + /** + * @deprecated The DAL is deprecated and will be removed in a future release. + * You can use the raw query API or a query builder/ORM integration. + */ async deleteMany>( i?: SelectSubset> ): Promise {