+
Skip to content

Conversation

ocharles
Copy link
Contributor

@ocharles ocharles commented Jun 19, 2021

This executable takes a database connection string and a schema name, and prints out Haskell code to STDOUT that defines all data types along with corresponding TableSchemas.

For example:

cabal run schema-to-rel8 -- --connection="dbname=foo user=bar" --schema="public"

ocharles and others added 3 commits June 19, 2021 16:44
This executable takes a database connection string and a schema name,
and prints out Haskell code to STDOUT that defines all `data` types
along with corresponding `TableSchema`s.
@peterwicksstringfield
Copy link

peterwicksstringfield commented Oct 21, 2022

Hi, drive by contribution here, because I was messing with rel8 and ended up using your script.

  1. Bugfix: the script was using the table name in place of the schema name.
  2. Suggested, but questionable, improvement: deduplicate the definition of the field name. I'm not attached to this commit at all.

#210

FYI I think this script is findable and useful even if just sits here in this PR forever.

Thanks,

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载