Coder Social home page Coder Social logo

Comments (6)

robertmantissa avatar robertmantissa commented on August 11, 2024 3

Got it, haven't bothered with temporal tables at all, so chances are that those won't work.
Anyway, check out my fork here:
https://github.com/robertmantissa/Respawn
(Simply did a:

  var checkpoint = new Checkpoint();
  checkpoint.WithReseed = true;

to keep the current api)

from respawn.

jbogard avatar jbogard commented on August 11, 2024

Oh that's interesting. I don't know if other databases support this kind of thing, maybe it could be exposed through some kind of options object?

from respawn.

robertmantissa avatar robertmantissa commented on August 11, 2024

After some quick googling it seems to be possible in both MySQL and Oracle.
I will create a fork and add the SQL Server functionality first, and we'll take it from there.

Regarding temporal tables, those were new to me. I guess there might be issues with reseeding those. I'll keep them in mind.

from respawn.

jbogard avatar jbogard commented on August 11, 2024

from respawn.

Lazys avatar Lazys commented on August 11, 2024

Hi,
I want to add few words:

We had problems with randomly failing tests.. I was struggling almost 2 days until I've found out that the problem is with Respawn and Identity value when tests are run in appropriate order. Then I've run into this pull request!

For my team changes that @robertmantissa proposed are crucial to be able to still use Respawn with ease. Please consider this @jbogard .

Important note: code prepared by @robertmantissa not covers scenario when table has custom IDENTITY SEED initial value. For example 1000 instead of 1. I had problems with it, so I've added fix to the @robertmantissa code and created pull request to his fork. Please check it out here: pull request

Right now I have to use locally compiled version of respawn which includes @robertmantissa and my changes, but I would like to go back to yours nugget package as soon as possible.

from respawn.

robertmantissa avatar robertmantissa commented on August 11, 2024

Solved with pull request #40

from respawn.

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.