Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Introspect" basic comparison operators #64

Merged
merged 5 commits into from
Nov 13, 2023

Conversation

danieljharvey
Copy link
Collaborator

What

We've been relying on hardcoded introspection information taken from ndc-postgres, but that's not really very useful.

This implements somewhat hard coded introspection for comparison operators using info from the SQLServer websites.

How

  • add just generate-chinook-configuration
  • add test that deployment config is up to date
  • hard code basic comparison operators

@danieljharvey danieljharvey changed the title "Introspect" comparison operators "Introspect" basic comparison operators Nov 13, 2023
@@ -0,0 +1,71 @@
use std::fs;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The test that makes sure the static deployment in the repo is up to date with the code.

@@ -0,0 +1,1746 @@
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We've added the "save all old versions of these files" script so we can add the "make sure we can parse all the old versions" test soon.

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Everything in /scripts is taken pretty much verbatim from ndc-postgres.

@danieljharvey danieljharvey requested a review from plcplc November 13, 2023 14:12
mkdir -p "$SNAPSHOT_DIR"

# create filename from hash of contents
NEW_FILENAME="$(sha256sum "${CHINOOK_DEPLOYMENT}" | cut -f1 -d' ').json"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is very nice indeed.

@danieljharvey danieljharvey added this pull request to the merge queue Nov 13, 2023
Merged via the queue into main with commit ba3c1ef Nov 13, 2023
6 checks passed
@SamirTalwar SamirTalwar deleted the djh/add-chinook-generate-script branch November 20, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants