Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the terminology "Database seeding" mean?

What is database seeding in the context of Core Data?

like image 384
Amrut Avatar asked Nov 24 '12 22:11

Amrut


People also ask

What is meant by seeding a database?

Data seeding is the process of populating a database with an initial set of data. There are several ways this can be accomplished in EF Core: Model seed data. Manual migration customization. Custom initialization logic.

Why do we seed a database?

Seeding allows you to consistently re-create the same data in your database and can be used to: Populate your database with data that is required for your application to start - for example, a default language or a default currency.

Which command is used to seed your database?

The db:seed command is used to add records to a database automatically using a Seeder ( Illuminate\Database\Seeder ) class to generate or provide the records.

What does seed mean in programming?

1. When referring to computer programming, security, or software a random seed is a number or other value that is generated by software using one or more values. For example, hardware information, time, or date are different examples of values that help generate a random value used by a program or encryption.


2 Answers

http://en.wikipedia.org/wiki/Database_seeding

Database seeding is the initial seeding of a database with data.

This is often an automated process that is executed upon the initial setup of an application.

The data can be dummy data or necessary data such as an initial administrator account.

like image 175
itsazzad Avatar answered Oct 19 '22 01:10

itsazzad


In the context of core data seeding just means shipping your app with a persistent store pre-populated with default data. In the recipes example Apple has, the seeded data is the recipe data that they have in the sqlite database that's a part of the project.

like image 25
David Hodge Avatar answered Oct 19 '22 03:10

David Hodge