question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for 64-bit integers

See original GitHub issue

Problem

Lots of database support 64-bit integers. We don’t support them yet because not all databases support them.

Possible Solution

In the databases that support 64-bit integers, we add datasource-specific attributes to define 64-bit types.

Original Issue

Prisma1 did not support Long integers (64-Bit). Will Prisma2 support Long (64-Bit) in parallel to Int (32-Bit)?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
matthewmuellercommented, Aug 1, 2019

Hey @nickreynke!

Prisma 2 doesn’t currently support 64bit integers, however we’re planning to add support for them depending on the database using Type Definitions.

While we haven’t implemented them yet

datasource pg {
  provider = "postgresql"
}

type Long Int @pg.bigint

model User {
  bignum Long
}

We’re also looking for feedback on the syntax, so if you have any thoughts there let me know. Would this address your issue?

2reactions
ZiiMakccommented, Sep 29, 2020

Is there any workaround to use bigint in js?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for 64-bit integers · Issue #5001 · prisma ... - GitHub
Prisma 2 doesn't currently support 64bit integers, however we're planning to add support for them depending on the database using Type Definitions.
Read more >
Can you add two 64-bit integers natively in x86?
1 Answer 1 · the most recommended way is to do an addition in two steps with an add and then an adc...
Read more >
How Cheerp supports 64-bit integers in both JavaScript and ...
In this post, we will explain why supporting 64-bit integers requires special attention and what we will be able to do in the...
Read more >
Support 64-bit architectures - Android Developers
Apps published on Google Play need to support 64-bit architectures. Adding a 64-bit version of your app provides performance improvements and sets you...
Read more >
Is it possible to have a 64bit Integer addition in C? - Keil forum
I just think i have to divide my 64bit long word into a low and high 32bit value. First the low addition, then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found