Package io.github.spartatech.sqljson
Class SqlJson
- java.lang.Object
-
- io.github.spartatech.sqljson.SqlJson
-
public class SqlJson extends Object
-
-
Constructor Summary
Constructors Constructor Description SqlJson(File json)SqlJson(File json, SqlJsonConfigurer config)SqlJson(InputStream json)SqlJson(InputStream json, SqlJsonConfigurer config)SqlJson(String json)SqlJson(String json, SqlJsonConfigurer config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonResultSetqueryAsJSONObject(String sql)
-
-
-
Constructor Detail
-
SqlJson
public SqlJson(String json) throws IOException
- Throws:
IOException
-
SqlJson
public SqlJson(InputStream json) throws IOException
- Throws:
IOException
-
SqlJson
public SqlJson(File json) throws IOException
- Throws:
IOException
-
SqlJson
public SqlJson(String json, SqlJsonConfigurer config) throws IOException
- Throws:
IOException
-
SqlJson
public SqlJson(InputStream json, SqlJsonConfigurer config) throws IOException
- Throws:
IOException
-
SqlJson
public SqlJson(File json, SqlJsonConfigurer config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
queryAsJSONObject
public JsonResultSet queryAsJSONObject(String sql) throws Exception
- Throws:
Exception
-
-