Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

fix(sql): PostgreSQL compatibility for keiko-sql #176

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

jcavanagh
Copy link
Contributor

This change includes the following:

  • Removing bigint display qualifiers - these are MySQL specific, and display-only
  • A number of queries used MySQL-specific upsert features. These have been expanded with PostgreSQL-compatible varieties.
  • A small helper has been added to handle the dynamic Keiko queue table creation for PostgreSQL
  • A helper has been added to make use of Postgres's "excluded" conflict feature for inserts

This change includes the following:

- Removing bigint display qualifiers - these are MySQL specific, and display-only
- A number of queries used MySQL-specific upsert features.  These have been expanded with PostgreSQL-compatible varieties.
- A small helper has been added to handle the dynamic Keiko queue table creation for PostgreSQL
- A helper has been added to make use of Postgres's "excluded" conflict feature for inserts
import org.jooq.SQLDialect
import org.jooq.impl.DSL

fun currentSchema(context: DSLContext): String {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these two could be made into kotlin extension method on DSLContext

Copy link
Contributor

@marchello2000 marchello2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@marchello2000 marchello2000 added the ready to merge Approved and ready for merge label Jul 14, 2020
@mergify mergify bot merged commit 8781046 into spinnaker:master Jul 14, 2020
@mergify mergify bot added the auto merged label Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto merged ready to merge Approved and ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants