Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Seeds From Sql Laravel Package

christian-schoenefeld/seeds-from-sql

Laravel package demonstrating how to seed a database from a .sql file. Includes an SQLSeeder that imports SQL using DB::unprepared; run via php artisan db:seed --class=SQLSeeder (after migrate) or as part of DatabaseSeeder.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Data Migration & ETL Workflows: Enables seamless SQL import capabilities for Laravel applications, reducing reliance on manual scripts or third-party tools for bulk data operations (e.g., seeding, syncing, or legacy system migrations).
  • Developer Productivity: Accelerates onboarding for teams needing to import structured data (e.g., CSV-to-database pipelines, test data generation) without deep SQL expertise.
  • Build vs. Buy: Justifies internal tooling investment if the package replaces custom scripts or SaaS solutions (e.g., AWS Glue, Airbyte) for niche use cases.
  • Roadmap Alignment: Supports initiatives requiring scalable data pipelines (e.g., analytics dashboards, multi-tenant data isolation) by providing a maintainable foundation.

When to Consider This Package

  • Use Case Fit:
    • Importing prepared SQL dumps (e.g., .sql files) into Laravel’s database without transaction overhead (via DB::unprepared).
    • Non-transactional bulk inserts where ACID compliance isn’t critical (e.g., analytics, reporting).
    • Teams already using Laravel’s Eloquent/Query Builder and needing a lightweight SQL import layer.
  • Avoid If:
    • Requiring transactional integrity (use Laravel’s DB::transaction or raw PDO instead).
    • Importing unstructured data (e.g., JSON/XML) or needing schema validation (consider Laravel Excel or custom parsers).
    • Performance-critical environments (benchmark against LOAD DATA INFILE or bulk insert queries).
    • Preferring GUI tools (e.g., phpMyAdmin, Adminer) for ad-hoc imports.

How to Pitch It (Stakeholders)

For Executives: "This package lets us import SQL data into Laravel apps 10x faster than manual scripts, cutting dev time for migrations, analytics, or test data. It’s a lightweight, open-source alternative to paid ETL tools—ideal for projects where we control the data format and don’t need transactions. Early adopters include [Team X], who used it to sync legacy databases in 2 hours instead of 2 days."

For Engineering: *"v1.0.3 adds raw SQL import via DB::unprepared, perfect for:

  • Seeding large datasets (e.g., php artisan db:seed --import=users.sql).
  • Syncing external DBs (e.g., PostgreSQL → MySQL) without ORM overhead.
  • Avoiding transaction locks in read-heavy workflows. Tradeoff: No schema checks or rollback—use cautiously for production. Pair with our existing validation layers."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings