-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #422 from Brendonovich/417-unique-array-error
fix arrays in unique where param
- Loading branch information
Showing
6 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
[alias] | ||
prisma = "run -p prisma-cli --features postgresql --" |
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,10 @@ | ||
[package] | ||
name = "issue-417" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
prisma-client-rust = { workspace = true, features = ["postgresql", "migrations"], default-features = false } | ||
serde.workspace = true |
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,18 @@ | ||
datasource db { | ||
provider = "postgresql" | ||
url = "postgres://postgres:postgrespw@localhost:55000" | ||
} | ||
|
||
generator client { | ||
provider = "cargo prisma" | ||
output = "../src/db" | ||
// necessary since the generated file won't be at crate::prisma | ||
module_path = "db" | ||
client_format = "folder" | ||
} | ||
|
||
model Item { | ||
numericId BigInt @unique @default(autoincrement()) | ||
path BigInt[] @unique | ||
} |
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,12 @@ | ||
#[allow(warnings, unused)] | ||
mod db; | ||
|
||
#[cfg(test)] | ||
mod test { | ||
use super::*; | ||
|
||
#[test] | ||
fn test() { | ||
let _: db::item::WhereParam = db::item::path::equals(vec![0, 1, 2, 3]); | ||
} | ||
} |
b1d3f6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
prisma-client-rust – ./
prisma-client-rust-git-main-brendonovich.vercel.app
prisma-client-rust.vercel.app
prisma-client-rust-brendonovich.vercel.app
prisma.brendonovich.dev