@s-hirano-ist/s-database 1.1.0 → 1.1.2

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": "@s-hirano-ist/s-database",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Prisma database schema and client for s-private project",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "license": "AGPL-3.0",
31
31
  "dependencies": {
32
- "@prisma/client": "7.0.1",
32
+ "@prisma/client": "7.1.0",
33
33
  "@prisma/extension-accelerate": "3.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "prisma": "7.0.1",
36
+ "prisma": "7.1.0",
37
37
  "typescript": "5.9.3"
38
38
  },
39
39
  "scripts": {
@@ -33,7 +33,7 @@ export * from "./enums"
33
33
  * const categories = await prisma.category.findMany()
34
34
  * ```
35
35
  *
36
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
36
+ * Read more in our [docs](https://pris.ly/d/client).
37
37
  */
38
38
  export const PrismaClient = $Class.getPrismaClientClass()
39
39
  export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
@@ -17,8 +17,8 @@ import type * as Prisma from "./prismaNamespace"
17
17
 
18
18
  const config: runtime.GetPrismaClientConfig = {
19
19
  "previewFeatures": [],
20
- "clientVersion": "7.0.1",
21
- "engineVersion": "f09f2815f091dbba658cdcd2264306d88bb5bda6",
20
+ "clientVersion": "7.1.0",
21
+ "engineVersion": "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",
22
22
  "activeProvider": "postgresql",
23
23
  "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum Status {\n UNEXPORTED\n EXPORTED\n}\n\nmodel Category {\n id String @id\n\n name String\n\n Articles Article[]\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n userId String @map(\"user_id\")\n\n @@unique([name, userId])\n @@map(\"categories\")\n}\n\nmodel Article {\n id String @id\n\n title String\n url String\n quote String?\n\n ogImageUrl String? @map(\"og_image_url\")\n ogTitle String? @map(\"og_title\")\n ogDescription String? @map(\"og_description\")\n\n Category Category @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n categoryId String @map(\"category_id\")\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([url, userId])\n @@map(\"articles\")\n}\n\nmodel Note {\n id String @id\n\n title String\n markdown String\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([title, userId])\n @@map(\"notes\")\n}\n\nmodel Image {\n id String @id\n\n path String\n contentType String @map(\"content_type\") // e.g.: image/jpeg, image/png\n fileSize Int? @map(\"file_size\") // byte\n width Int? // pixel\n height Int? // pixel\n tags String[]\n description String?\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([path, userId])\n @@map(\"images\")\n}\n\nmodel Book {\n id String @id\n ISBN String @map(\"isbn\")\n title String\n\n googleTitle String? @map(\"google_title\")\n googleSubTitle String? @map(\"google_subtitle\")\n googleAuthors String[] @map(\"google_authors\")\n googleDescription String? @map(\"google_description\")\n googleImgSrc String? @map(\"google_img_src\")\n googleHref String? @map(\"google_href\")\n\n markdown String?\n\n rating Int? // 1-5\n tags String[]\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([ISBN, userId])\n @@map(\"books\")\n}\n",
24
24
  "runtimeDataModel": {
@@ -62,7 +62,7 @@ export interface PrismaClientConstructor {
62
62
  * const categories = await prisma.category.findMany()
63
63
  * ```
64
64
  *
65
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
65
+ * Read more in our [docs](https://pris.ly/d/client).
66
66
  */
67
67
 
68
68
  new <
@@ -84,7 +84,7 @@ export interface PrismaClientConstructor {
84
84
  * const categories = await prisma.category.findMany()
85
85
  * ```
86
86
  *
87
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
87
+ * Read more in our [docs](https://pris.ly/d/client).
88
88
  */
89
89
 
90
90
  export interface PrismaClient<
@@ -113,7 +113,7 @@ export interface PrismaClient<
113
113
  * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
114
114
  * ```
115
115
  *
116
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
116
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
117
117
  */
118
118
  $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
119
119
 
@@ -125,7 +125,7 @@ export interface PrismaClient<
125
125
  * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
126
126
  * ```
127
127
  *
128
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
128
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
129
129
  */
130
130
  $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
131
131
 
@@ -136,7 +136,7 @@ export interface PrismaClient<
136
136
  * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
137
137
  * ```
138
138
  *
139
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
139
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
140
140
  */
141
141
  $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
142
142
 
@@ -148,7 +148,7 @@ export interface PrismaClient<
148
148
  * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
149
149
  * ```
150
150
  *
151
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
151
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
152
152
  */
153
153
  $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
154
154
 
@@ -80,12 +80,12 @@ export type PrismaVersion = {
80
80
  }
81
81
 
82
82
  /**
83
- * Prisma Client JS version: 7.0.1
84
- * Query Engine version: f09f2815f091dbba658cdcd2264306d88bb5bda6
83
+ * Prisma Client JS version: 7.1.0
84
+ * Query Engine version: ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba
85
85
  */
86
86
  export const prismaVersion: PrismaVersion = {
87
- client: "7.0.1",
88
- engine: "f09f2815f091dbba658cdcd2264306d88bb5bda6"
87
+ client: "7.1.0",
88
+ engine: "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba"
89
89
  }
90
90
 
91
91
  /**
@@ -1051,7 +1051,7 @@ export type PrismaClientOptions = ({
1051
1051
  * { emit: 'stdout', level: 'error' }
1052
1052
  *
1053
1053
  * ```
1054
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
1054
+ * Read more in our [docs](https://pris.ly/d/logging).
1055
1055
  */
1056
1056
  log?: (LogLevel | LogDefinition)[]
1057
1057
  /**
@@ -1079,6 +1079,22 @@ export type PrismaClientOptions = ({
1079
1079
  * ```
1080
1080
  */
1081
1081
  omit?: GlobalOmitConfig
1082
+ /**
1083
+ * SQL commenter plugins that add metadata to SQL queries as comments.
1084
+ * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
1085
+ *
1086
+ * @example
1087
+ * ```
1088
+ * const prisma = new PrismaClient({
1089
+ * adapter,
1090
+ * comments: [
1091
+ * traceContext(),
1092
+ * queryInsights(),
1093
+ * ],
1094
+ * })
1095
+ * ```
1096
+ */
1097
+ comments?: runtime.SqlCommenterPlugin[]
1082
1098
  }
1083
1099
  export type GlobalOmitConfig = {
1084
1100
  category?: Prisma.CategoryOmit