Skip to content

Generate list of functions supported by a vanilla MySQL instance #657

Closed

Description

@kyleconroy

I laid the ground work for this in #550, but it needs significant work. For PostgreSQL, we need to do the following:

  • Refactor portions of sqlc-pg-gen into a separate package
  • Currently only function definitions are extracted. We need to include table and type information

MySQL is a bigger question mark because I don't know how to pull out the necessary information. The first step will be to explore what queries are necessary to get the needed data.

Activity

  1. eberkund commented on Aug 7, 2020

    @eberkund

    Hey, I am just browsing to see if there is anything within my capabilities and commitment level that I could contribute.

    My understanding is that the purpose of importing from a running instance is to basically map all the functions/types to Go types? Then using that mapping information the compiler can substitute for the Go types whenever it sees the functions/types used in SQL? Is this correct?

    Awesome project by the way! I have only used it for a hello world project so far, but the paradigm looks refreshingly simple to work in. 👍

  2. changed the title [-]Import a catalog from a running database[/-] [+]Generate list of functions supported by a vanilla MySQL instance[/+] on Oct 26, 2020
  3. kyleconroy commented on Oct 26, 2020

    @kyleconroy
    CollaboratorAuthor

    Replaces #630 #725 #655

  4. added this to the v1.6.0 milestone on Oct 26, 2020
  5. kyleconroy commented on Nov 16, 2020

    @kyleconroy
    CollaboratorAuthor

    This is sadly going to be more difficult than I thought. The information schema tables in MySQL do not contain built-in functions and procedures. This means we're going to have to construct that list manually, or via some type of scraping / codegen.

  6. removed this from the v2.0.0 milestone on Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions