Package com.sap.cds.jdbc.sqlite
Class SqliteStatementResolver
java.lang.Object
com.sap.cds.jdbc.generic.GenericStatementResolver
com.sap.cds.jdbc.sqlite.SqliteStatementResolver
- All Implemented Interfaces:
StatementResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlockClause(CqnLock lock) upsert(String table, Stream<String> keyColumns, Stream<String> upsertColumns, Stream<String> upsertValues) UPSERT is a clause added to INSERT that causes the INSERT to behave as an UPDATE or a no-op if the INSERT would violate a uniqueness constraint.Methods inherited from class com.sap.cds.jdbc.generic.GenericStatementResolver
applyTransformationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cds.jdbc.spi.StatementResolver
collate, deleteAll, hints, lockMode, preOptimize, statementWideCollation, supportsStatementWideCollation, timeoutClause
-
Constructor Details
-
SqliteStatementResolver
public SqliteStatementResolver()
-
-
Method Details
-
collate
-
upsert
public String upsert(String table, Stream<String> keyColumns, Stream<String> upsertColumns, Stream<String> upsertValues) UPSERT is a clause added to INSERT that causes the INSERT to behave as an UPDATE or a no-op if the INSERT would violate a uniqueness constraint. UPSERT is not standard SQL. UPSERT in SQLite follows the syntax established by PostgreSQL, with generalizations.https://www.sqlite.org/lang_upsert.html
The REPLACE command is not used, since it deletes and inserts: https://www.sqlite.org/lang_replace.html https://www.sqlite.org/lang_conflict.html
-
lockClause
-