mrceperka / sql-file-loader
Load queries from big sql files
0.0.1
2017-11-17 13:23 UTC
Requires
- php: >=7
Requires (Dev)
- phpunit/phpunit: ^6.4
This package is not auto-updated.
Last update: 2026-03-01 13:35:26 UTC
README
Installation
composer require mrceperka/sql-file-loader
Important notes
- Statements in SQL file have to end with
; - Loader does NOT check the SQL syntax
Usage
<?php use \MrCeperka\SqlFileLoader\SqlFileLoader; $resource = __DIR__ . '/data.sql'; // or with stdin // $resource = fopen('php://stdin', 'r'); $loader = new SqlFileLoader($resource); $queries = $loader->getQueries();