@@ -25,13 +25,15 @@ async function run(
2525 queryString : string ,
2626 readonly : boolean ,
2727 poll : boolean ,
28+ tag : string ,
2829 profile ?: string ,
2930) {
3031 const config = await readConfig ( profile ) ;
3132 const client = new Client ( config ) ;
33+ const tags = tag ? [ tag ] : undefined ;
3234 const result = poll
33- ? await client . exec ( database , engine , queryString , [ ] , readonly )
34- : await client . execAsync ( database , engine , queryString , [ ] , readonly ) ;
35+ ? await client . exec ( database , engine , queryString , [ ] , readonly , tags )
36+ : await client . execAsync ( database , engine , queryString , [ ] , readonly , tags ) ;
3537
3638 showTransactionResult ( result ) ;
3739}
@@ -43,6 +45,7 @@ async function run(
4345 . requiredOption ( '-d, --database <type>' , 'database name' )
4446 . requiredOption ( '-e, --engine <type>' , 'engine name' )
4547 . requiredOption ( '-c, --command <type>' , 'rel source string' )
48+ . option ( '-t, --tag <type>' , 'tag' , '' )
4649 . option ( '-r, --readonly' , 'readonly' , false )
4750 . option ( '--poll' , 'poll results' , false )
4851 . option ( '-p, --profile <type>' , 'profile' , 'default' )
@@ -56,6 +59,7 @@ async function run(
5659 options . command ,
5760 options . readonly ,
5861 options . poll ,
62+ options . tag ,
5963 options . profile ,
6064 ) ;
6165 } catch ( error : any ) {
0 commit comments