@dbos-inc/create 1.12.11 → 1.12.13-preview.g7a8a447e44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/create",
3
- "version": "1.12.11",
3
+ "version": "1.12.13-preview.g7a8a447e44",
4
4
  "description": "Tool for performing project initialization from template",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -85,7 +85,7 @@
85
85
  "lodash": "4.17.21",
86
86
  "openapi-types": "12.1.3",
87
87
  "pg": "8.11.3",
88
- "reflect-metadata": "^0.2.2",
88
+ "reflect-metadata": "0.2.2",
89
89
  "serialize-error": "8.1.0",
90
90
  "uuid": "9.0.1",
91
91
  "winston": "3.12.0",
@@ -0,0 +1,3 @@
1
+ -- DropTable
2
+ DROP TABLE "dbos_hello";
3
+
@@ -10,7 +10,7 @@ datasource db {
10
10
  url = env("DATABASE_URL")
11
11
  }
12
12
 
13
- model DbosHello {
13
+ model DBOSHello {
14
14
  @@map("dbos_hello")
15
15
  greeting_id Int @id @default(autoincrement())
16
16
  greeting String
@@ -7,7 +7,8 @@ export class Hello {
7
7
  @Transaction()
8
8
  static async helloTransaction(txnCtxt: TransactionContext<PrismaClient>, name: string) {
9
9
  const greeting = `Hello, ${name}!`;
10
- const res = await txnCtxt.client.dbosHello.create({
10
+ const p: PrismaClient = txnCtxt.client as PrismaClient;
11
+ const res = await p.dBOSHello.create({
11
12
  data: {
12
13
  greeting: greeting,
13
14
  },