Package de.chojo.sqlutil.databases
Class SqLite
- All Implemented Interfaces:
SqlType<SqLiteJdbc>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVersionTableQuery(String table) Creates a query to create a version table on the database.getName()Get a unique name to identify the database.Returns theJdbcConfigimplementation for this databaseString[]splitStatements(String queries) If the db does not allow to execute multiple queries this function should return every query in one stringMethods inherited from class de.chojo.sqlutil.databases.DefaultType
deleteVersion, getVersion, insertVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.chojo.sqlutil.databases.SqlType
cleanStatements, createSchema, hasSchemas, schemaExists
-
Constructor Details
-
SqLite
public SqLite()
-
-
Method Details
-
createVersionTableQuery
Description copied from interface:SqlTypeCreates a query to create a version table on the database.The query needs to handle errors when the table exists.
- Specified by:
createVersionTableQueryin interfaceSqlType<SqLiteJdbc>- Overrides:
createVersionTableQueryin classDefaultType<SqLiteJdbc>- Parameters:
table- table name- Returns:
- query to create a version table
-
getName
Description copied from interface:SqlTypeGet a unique name to identify the database.- Returns:
- database name
-
jdbcBuilder
Description copied from interface:SqlTypeReturns theJdbcConfigimplementation for this database- Returns:
- jdbc builder
-
splitStatements
Description copied from interface:SqlTypeIf the db does not allow to execute multiple queries this function should return every query in one string- Parameters:
queries- queries- Returns:
- splitted queries if needed
-