GithubHelp home page GithubHelp logo

Prisma engines about prisma-dart HOT 11 CLOSED

medz avatar medz commented on May 28, 2024
Prisma engines

from prisma-dart.

Comments (11)

medz avatar medz commented on May 28, 2024 1

@Ali1Ammar I'm in contact with the Prisma ORM official to see if I need to move this repository under the prisma org.

from prisma-dart.

Ali1Ammar avatar Ali1Ammar commented on May 28, 2024 1

I have a working version of the binary engine inside https://github.com/odroe/prisma/tree/query-engine/orm/lib/src/engine
I will merge this implementation inprisma_query_engine/lib/src/native/binary
but I need to access configure class from prisma_cli/lib/src/configure.dart
so I think we need I new package for the shared code between all

from prisma-dart.

Ali1Ammar avatar Ali1Ammar commented on May 28, 2024 1

@medz for the web we could generate the config as dart file with the generate command but for now I will just add todo for that

from prisma-dart.

Docteur-Night avatar Docteur-Night commented on May 28, 2024 1

hello @Chris-Sechri this package is still under heavy development and we still didn't releases any version for public use

@Chris-Sechri
🎉Happy to announce that Prisma ORM for Dart is available in version 2.0.0-dev.4. But still the following problems:

  1. db pull has not been completed
  2. Model deserialization has not been completed yet, the current model code returns dynamic type

More available check out the version on pub.dev 👉https://pub.dev/packages/orm/versions/2.0.0-dev.4

from prisma-dart.

medz avatar medz commented on May 28, 2024

@Ali1Ammar Can you email me your pub.dev account email address? I will set your permissions in pub.dev on all packages of Prisma ORM.

from prisma-dart.

medz avatar medz commented on May 28, 2024

@Ali1Ammar Regarding the three engines of Binary, Dynamic Library, and Data Proxy, I have established a good cross-platform interface for them in the main branch (to be completed).

The responsibilities of each package are as follows:

  1. orm is responsible for the runtime, which is the Prisma Client part, the code is platform independent. But bin still needs to proxy cli so that developers can type as few command strings as possible.
  2. prisma_cli is responsible for completing data management and other related command line tools
  3. prisma_query_engine, for the engine encapsulation of the orm package, export and use platform judgment, so that it supports three engines and the flag of the package is all platforms.
  4. prisma_query_engine_dylib has a built-in toolchain for the C API written by Prisma Engines, and EngineDynamicLibrary is automatically generated during development.

I think you're working on the prisma-engine branch without needing to have the main branch and make some changes to the code.

At the same time I forked the prisma_engine_dylib branch for the development of Dynamic Engine.

from prisma-dart.

medz avatar medz commented on May 28, 2024

I think the Engine interface part is what we need to complete together. next, I will focus on development of Dynamic Library Engine and supplement the Engine interface.

from prisma-dart.

medz avatar medz commented on May 28, 2024

@Ali1Ammar It is possible to create new packages for code sharing. I've also been wondering how to share the configuration.

Loading the configuration requires IO operations, which may affect the Dart Web and Flutter Web platforms, but I think a shared package with IO operations can be implemented first. We'll discuss how to deal with the web platform when we're done developing Prisma Data Proxy.

from prisma-dart.

medz avatar medz commented on May 28, 2024

@Ali1Ammar 👌 The i'm idea of web platform support is to only allow Prisma Data Proxy engine drivers.

But that's after we've done the Binary and DynamicLibrary drivers.

from prisma-dart.

Docteur-Night avatar Docteur-Night commented on May 28, 2024

Hi guys, i was so excited to use this package until the following command dart run orm generate is not working, so i can't generate the client.
Can you help me to fix that please ?

from prisma-dart.

Ali1Ammar avatar Ali1Ammar commented on May 28, 2024

hello @Chris-Sechri
this package is still under heavy development and we still didn't releases any version for public use

from prisma-dart.

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.