{"id":21394199,"url":"https://github.com/mikeshiyan/file-to-sqlite","last_synced_at":"2026-04-30T12:34:22.387Z","repository":{"id":57049615,"uuid":"125454071","full_name":"mikeshiyan/file-to-sqlite","owner":"mikeshiyan","description":"Copies data from a file to an SQLite database using regular expressions.","archived":false,"fork":false,"pushed_at":"2018-04-21T15:22:46.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T11:03:58.036Z","etag":null,"topics":["composer","console","file","oop","php","regex","sqlite"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikeshiyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-16T02:43:53.000Z","updated_at":"2018-04-21T15:22:27.000Z","dependencies_parsed_at":"2022-08-23T19:10:31.070Z","dependency_job_id":null,"html_url":"https://github.com/mikeshiyan/file-to-sqlite","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mikeshiyan/file-to-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Ffile-to-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Ffile-to-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Ffile-to-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Ffile-to-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeshiyan","download_url":"https://codeload.github.com/mikeshiyan/file-to-sqlite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshiyan%2Ffile-to-sqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32465009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","console","file","oop","php","regex","sqlite"],"created_at":"2024-11-22T14:14:39.624Z","updated_at":"2026-04-30T12:34:22.359Z","avatar_url":"https://github.com/mikeshiyan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File to SQLite\n\nA command-line utility for copying data from a file to an SQLite database file\nusing regular expressions.\n\nPerfect for converting automatic log files, reports, etc.\n\n## Requirements\n\n* PHP \u0026ge; 7.1\n* [Composer](https://getcomposer.org)\n\n## Installation\n\n```\ncomposer global require --optimize-autoloader shiyan/file-to-sqlite\n```\n\nMake sure that the `COMPOSER_HOME/vendor/bin` dir is in your `PATH` env var.\nMore info in the composer help: `composer global -h`\n\nIf you have the [CGR](https://github.com/consolidation/cgr) installed, then run\nthe following command instead of the one above:\n\n```\ncgr -o shiyan/file-to-sqlite\n```\n\n## Usage\n\n```\nfile-to-sqlite [options] [--] \u003csource\u003e \u003cdestination\u003e \u003cpattern\u003e\n```\n\n##### Arguments:\n```\nsource                 Path to the source file.\ndestination            Path to the SQLite database file. If not exists, it will\n                       be created.\npattern                Regular expression pattern with named subpatterns.\n```\n\n##### Options:\n```\n-t, --table=TABLE      Table name. By default, the source file name is used.\n-i, --integer=INTEGER  List of integer fields. (multiple values allowed)\n    --blob=BLOB        List of blob fields. (multiple values allowed)\n    --real=REAL        List of real fields. (multiple values allowed)\n    --numeric=NUMERIC  List of numeric fields. (multiple values allowed)\n-p, --primary=PRIMARY  Primary key(s). (multiple values allowed)\n-a, --append           If the table exists, this option allows to insert into it\n                       anyway.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshiyan%2Ffile-to-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeshiyan%2Ffile-to-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshiyan%2Ffile-to-sqlite/lists"}