Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
**/*.rs.bk
*.swp
pg_jsonschema-*

# The line above is too broad, but this will allow the SQL files matched by it to not be ignored
!/sql/*.sql
Empty file.
18 changes: 18 additions & 0 deletions sql/pg_jsonschema--0.1.4--0.2.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- src/lib.rs:33
-- pg_jsonschema::jsonschema_validation_errors
CREATE FUNCTION "jsonschema_validation_errors"(
"schema" json, /* pgrx::datum::json::Json */
"instance" json /* pgrx::datum::json::Json */
) RETURNS TEXT[] /* alloc::vec::Vec<alloc::string::String> */
IMMUTABLE STRICT
LANGUAGE c /* Rust */
AS 'MODULE_PATHNAME', 'jsonschema_validation_errors_wrapper';

-- src/lib.rs:16
-- pg_jsonschema::jsonschema_is_valid
CREATE FUNCTION "jsonschema_is_valid"(
"schema" json /* pgrx::datum::json::Json */
) RETURNS bool /* bool */
IMMUTABLE STRICT
LANGUAGE c /* Rust */
AS 'MODULE_PATHNAME', 'jsonschema_is_valid_wrapper';
Empty file.
4 changes: 4 additions & 0 deletions sql/pg_jsonschema--0.3.0--0.3.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER FUNCTION "jsonschema_validation_errors" PARALLEL SAFE;
ALTER FUNCTION "jsonschema_is_valid" PARALLEL SAFE;
ALTER FUNCTION "jsonb_matches_schema" PARALLEL SAFE;
ALTER FUNCTION "json_matches_schema" PARALLEL SAFE;
Empty file.
Empty file.