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

improve SQL create table handling #4

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Conversation

DenisCarriere
Copy link
Contributor

  • Improve SQL CREATE TABLE schema handling

Tests with

CREATE TABLE factory_pair_created (
    "evt_tx_hash" VARCHAR(64),
    "evt_index" INT,
    "evt_block_time" TIMESTAMP,
    "evt_block_number" DECIMAL,
    "pair" VARCHAR(40),
    "param3" DECIMAL,
    "token0" VARCHAR(40),
    "token1" VARCHAR(40),
    PRIMARY KEY(evt_tx_hash,evt_index)
)
CREATE TABLE block_meta
(
    id          TEXT NOT NULL CONSTRAINT block_meta_pk PRIMARY KEY,
    at          TIMESTAMP,
    number      BIGINT,
    hash        TEXT,
    parent_hash TEXT,
    timestamp   TIMESTAMP
);

@DenisCarriere DenisCarriere merged commit 7a6f226 into main Mar 2, 2024
@DenisCarriere DenisCarriere deleted the fix/create-table branch March 2, 2024 21:45
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.

1 participant