File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,21 +37,4 @@ export const getRoleName = (
3737export const getDefaultRole = ( options ?: PgTestConnectionOptions ) : string => {
3838 const mapping = getRoleMapping ( options ) ;
3939 return mapping . default ;
40- } ;
41-
42- /**
43- * Replace role names in SQL using the current mapping
44- */
45- export const substituteRolesInSql = ( sql : string , options ?: PgTestConnectionOptions ) : string => {
46- const mapping = getRoleMapping ( options ) ;
47-
48- // Replace role names in SQL - handle various patterns
49- let result = sql ;
50-
51- // Replace exact role names (word boundaries)
52- result = result . replace ( / \b a n o n y m o u s \b / g, mapping . anonymous ) ;
53- result = result . replace ( / \b a u t h e n t i c a t e d \b / g, mapping . authenticated ) ;
54- result = result . replace ( / \b a d m i n i s t r a t o r \b / g, mapping . administrator ) ;
55-
56- return result ;
57- } ;
40+ } ;
You can’t perform that action at this time.
0 commit comments