Skip to content

Commit

Permalink
Updated unitore module to accept single SQL query
Browse files Browse the repository at this point in the history
The change in the module/move/unitore/src/executor/mod.rs allows for a single SQL query string as an argument, rather than a list of strings. Now, the 'subject().hint( "Query" )' method call supports Type::String.
  • Loading branch information
Barsik-sus committed Apr 1, 2024
1 parent b43c7f0 commit bce653a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/move/unitore/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pub fn execute() -> Result< (), Box< dyn std::error::Error + Send + Sync > >
r#" .query.execute \'SELECT title, links, MIN\(published\) FROM frame\'"#,
"\n\n",
))
.subject().hint( "Query" ).kind( Type::List( Type::String.into(), ' ' ) ).optional( false ).end()
.subject().hint( "Query" ).kind( Type::String ).optional( false ).end()
.routine( | o : VerifiedCommand |
{
match action( execute_query, &o.args )
Expand Down

0 comments on commit bce653a

Please sign in to comment.