Giter Site home page Giter Site logo

EPIC: Native Types about prisma-engines HOT 4 CLOSED

prisma avatar prisma commented on August 10, 2024
EPIC: Native Types

from prisma-engines.

Comments (4)

mavilein avatar mavilein commented on August 10, 2024

Initial break down of Work Packages

  • general
    • map out all custom types of the supported databases. Map them to Prisma Core primitive types.
  • Datamodel Parser
    • extend Field data structure in dml module to store informations on custom types
    • implement new DirectiveValidator for custom types that must be part of the Datasource interface
    • test cases:
      • basic happy path
      • use invalid type for a database type
  • Migration Engine
    • core: implement new algorithm to diff custom directives. This will require us to rewrite the complete diffing logic. This will diff the ast than the dml data structures. This will lead to a breaking change of the structure of the steps.json.
    • sql connector:
      • calculation of sql schema
      • diffing of sql schemas
      • add SQL rendering to database step applier
  • Query Engine
    • We probably need to implement some kind of value coercion here. This is needed to e.g. coerce the value of a field like field String @pg.json from the underyling json type to String.
    • This will require significant work for the InternalDatamodel and the DatamodelConverter. We will have to work on bringing the InternalDatamodel and the dml::Datamodel closer together.
  • Introspection Engine:
    • core: no work required
    • connector:
      • verify that the sql-schema-describer can handle compound custom types
      • adapt Datamodel calculation so that custom types are put into the model
  • Language Tools:
    • the connector must expose the available FieldTypeConstructors
    • create an interface that can be consumed by the vs code plugin (consider adding it to MCF)
    • implement auto completion

from prisma-engines.

mavilein avatar mavilein commented on August 10, 2024

I have asked for clarification of the spec: prisma/specs#173

from prisma-engines.

do4gr avatar do4gr commented on August 10, 2024

Native types got stabilized in 2.17!

from prisma-engines.

Jolg42 avatar Jolg42 commented on August 10, 2024

See https://github.com/prisma/prisma/releases/tag/2.17.0

from prisma-engines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.