Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
229 views

Trying to seed data using Identity.AspNetCore with .UseSeeding and .UseAsyncSeeding?

So I've ran into an issue that I am not sure how to handle. You see I am trying to deal with an Initial seeding of Admin data for my App. But the thing is.. Since I am using Identity to handle both ...
yzkael's user avatar
  • 337
0 votes
1 answer
245 views

PostgreSQL SET session_replication_role = replica not bypassing constraints in Supabase seed file

I'm trying to seed data into my Supabase database but even though my seed.sql (generated by Supabase) includes SET session_replication_role = replica at the top, constraints are still being enforced. ...
Joel Castro's user avatar
0 votes
0 answers
42 views

Why does my NestJS seeding script want other modules?

I have a NestJS app and I want to create a seeding script for status. Here is my script: import { NestFactory } from '@nestjs/core'; import { AppModule } from '../../app.module'; import { Status } ...
jelly5798's user avatar
  • 349
0 votes
0 answers
96 views

How to avoid duplicated entries while seeding a database using typeorm-extension

In a NestJS with TypeORM I tried to seed a MariaDB database using typeorm-extension package. The problem is that sometimes while running the script to seed the database it creates duplicated entries ...
Carlos Casado Vargas's user avatar
1 vote
1 answer
50 views

Change of Program.cs in ASP.NET Core 6 for seedData

I work in ASP.NET Core 6. I have a Json file containing user information to be stored in the database. I also have a class as (SeedUserData) that reads from that json file and stores users one by one ...
amir's user avatar
  • 25
0 votes
1 answer
44 views

If i hardcode seed file mock data it works but if i import mock data for seeding from other file it does not work

In my seed.ts file if i import mock user data from other file it raise error. zohaibamir@174-16-0-44 stt % npx prisma db seed Environment variables loaded from .env Running seed command `ts-node --...
Zohaib Amir's user avatar
0 votes
1 answer
103 views

Store numbers as "random" seed

Is it possible to calculate a seed from a given list of numbers, such that this seed will cause a number-generating function (like rand()) to output this list of numbers? And, at which point does it ...
Thomas B.'s user avatar
  • 731
0 votes
2 answers
233 views

Error when seeding a relationship using Prisma 5 and JavaScript

I am trying to seed my prisma db but am having trouble doing so with a user -> Payment relation. Seeder Code: export const userSeeder = async (prisma) => { const productIds = await ...
CodeConnoisseur's user avatar
0 votes
0 answers
221 views

How to save array of key, value from json file? using prisma sqlite

I am unable to save customers, purchased items to my database, I am using sqlite prisma, belwo is my customers.json [ { "id": 1, "firstName": "Emily", "...
kashaf's user avatar
  • 1
0 votes
1 answer
66 views

How to put common data in seeds and fixtures on Ruby-on-Rails?

I would like to assign identical data to some of the records for seeds for DB-initialization and fixtures for testing on Ruby-on-Rails, without violating the DRY principle. For example, let us ...
Masa Sakano's user avatar
  • 2,277
0 votes
0 answers
65 views

TypeError: db.Game.deleteMany is not a function

I'm trying to update an app written in react a few years ago & keep getting an error saying "TypeError: db.Game.deleteMany is not a function" Seed.js const db = require('./models'); ...
cass-ette's user avatar
0 votes
1 answer
387 views

seeding static data in laravel 10 error argument #1 must be of type array

I'm trying to seed a static data (existing categories) to a 'categories' table in Laravel 10. I'm very new to Laravel so I'm confused even after reading the documentation and tutorial videos. This is ...
dapidmini's user avatar
  • 1,635
0 votes
1 answer
187 views

Seeding data using static method and IApplicationBuilder in ASP.NET Core

I really don't understand what's going on in this EnsurePopulated method which creates seeding data. public static class SeedData { public static void EnsurePopulated(IApplicationBuilder app) {...
yinivem462's user avatar
2 votes
1 answer
159 views

Is it possible to seed data with specific identifier using EF Core custom initialization logic?

Using EntityFramework Core 7.0, I would like to seed some data while being able to specify identifiers (primary keys) for the records to create. As this seeding is needed for integration testing ...
Anthony Fleury's user avatar
4 votes
2 answers
474 views

Using operator>> to seed mt19937

In a blog post entitled "C++ Seeding Surprises," Melissa E. O'Neill reports that, "When std::seed_seq tries to “fix” high-quality seed data, it actually makes it worse." According ...
tbxfreeware's user avatar
  • 2,246

15 30 50 per page
1
2 3 4 5
36