Class SQLQueryHandler

java.lang.Object
org.sgrewritten.stargate.database.SQLQueryHandler

public class SQLQueryHandler extends Object
A handler which keeps track of all queries and query variations
  • Method Details

    • getQuery

      public static String getQuery(SQLQuery sqlQuery, DatabaseDriver databaseDriver)
      Gets the given SQL query

      This will return a query for the given database driver, or SQLite if the SQLite syntax is valid

      Parameters:
      sqlQuery -

      The SQL query to get

      databaseDriver -

      The database driver to get the query for

      Returns:

      A query valid for the given database driver