Skip to content

Commit e99b81c

Browse files
committed
snaps
1 parent 8534689 commit e99b81c

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

packages/pgsql-parser/__tests__/__snapshots__/kitchen-sink.test.ts.snap

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23740,6 +23740,68 @@ exports[`kitchen sink indexes 1`] = `
2374023740
"stmt_location": 456,
2374123741
},
2374223742
},
23743+
{
23744+
"RawStmt": {
23745+
"stmt": {
23746+
"IndexStmt": {
23747+
"accessMethod": "gin",
23748+
"concurrent": true,
23749+
"idxname": "idx_with_operator",
23750+
"indexParams": [
23751+
{
23752+
"IndexElem": {
23753+
"name": "name",
23754+
"nulls_ordering": "SORTBY_NULLS_DEFAULT",
23755+
"opclass": [
23756+
{
23757+
"String": {
23758+
"str": "gin_trgm_ops",
23759+
},
23760+
},
23761+
],
23762+
"opclassopts": [
23763+
{
23764+
"DefElem": {
23765+
"arg": {
23766+
"Integer": {
23767+
"ival": 32,
23768+
},
23769+
},
23770+
"defaction": "DEFELEM_UNSPEC",
23771+
"defname": "param1",
23772+
"location": 624,
23773+
},
23774+
},
23775+
{
23776+
"DefElem": {
23777+
"arg": {
23778+
"String": {
23779+
"str": "true",
23780+
},
23781+
},
23782+
"defaction": "DEFELEM_UNSPEC",
23783+
"defname": "param2",
23784+
"location": 637,
23785+
},
23786+
},
23787+
],
23788+
"ordering": "SORTBY_DEFAULT",
23789+
},
23790+
},
23791+
],
23792+
"relation": {
23793+
"inh": true,
23794+
"location": 575,
23795+
"relname": "merkle_tree",
23796+
"relpersistence": "p",
23797+
"schemaname": "boom",
23798+
},
23799+
},
23800+
},
23801+
"stmt_len": 127,
23802+
"stmt_location": 526,
23803+
},
23804+
},
2374323805
]
2374423806
`;
2374523807

@@ -23748,7 +23810,8 @@ exports[`kitchen sink indexes 2`] = `
2374823810
CREATE UNIQUE INDEX databases_database_unique_name_idx ON databases.database ( tenant_id, database_name_hash(name) );
2374923811
CREATE UNIQUE INDEX boom_worktree_idx ON boom.worktree ( tag, reference, created, decode(md5(lower(path)), 'hex') );
2375023812
CREATE UNIQUE INDEX uniq_service_when_not_null ON schema2.table3 ( uid, svc ) WHERE svc IS NOT NULL;
23751-
CREATE UNIQUE INDEX new_unique_idx ON new_example ( a, b ) INCLUDE ( c );"
23813+
CREATE UNIQUE INDEX new_unique_idx ON new_example ( a, b ) INCLUDE ( c );
23814+
CREATE INDEX CONCURRENTLY idx_with_operator ON boom.merkle_tree USING GIN ( name gin_trgm_ops ( param1 = 32, param2 = true ) );"
2375223815
`;
2375323816

2375423817
exports[`kitchen sink insert 1`] = `

0 commit comments

Comments
 (0)