2017 © Pedro Peláez
 

library file-to-sqlite

Copies data from a file to an SQLite database using regular expressions.

image

shiyan/file-to-sqlite

Copies data from a file to an SQLite database using regular expressions.

  • Saturday, April 14, 2018
  • by mikeshiyan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

File to SQLite

A command-line utility for copying data from a file to an SQLite database file using regular expressions., (*1)

Perfect for converting automatic log files, reports, etc., (*2)

Requirements

Installation

composer global require --optimize-autoloader shiyan/file-to-sqlite

Make sure that the COMPOSER_HOME/vendor/bin dir is in your PATH env var. More info in the composer help: composer global -h, (*3)

If you have the CGR installed, then run the following command instead of the one above:, (*4)

cgr -o shiyan/file-to-sqlite

Usage

file-to-sqlite [options] [--] <source> <destination> <pattern>
Arguments:
source                 Path to the source file.
destination            Path to the SQLite database file. If not exists, it will
                       be created.
pattern                Regular expression pattern with named subpatterns.
Options:
-t, --table=TABLE      Table name. By default, the source file name is used.
-i, --integer=INTEGER  List of integer fields. (multiple values allowed)
    --blob=BLOB        List of blob fields. (multiple values allowed)
    --real=REAL        List of real fields. (multiple values allowed)
    --numeric=NUMERIC  List of numeric fields. (multiple values allowed)
-p, --primary=PRIMARY  Primary key(s). (multiple values allowed)
-a, --append           If the table exists, this option allows to insert into it
                       anyway.

The Versions

14/04 2018

dev-master

9999999-dev

Copies data from a file to an SQLite database using regular expressions.

  Sources   Download

MIT

The Requires

 

file php console sqlite oop regex

14/04 2018

0.4.0

0.4.0.0

Copies data from a file to an SQLite database using regular expressions.

  Sources   Download

MIT

The Requires

 

file php console sqlite oop regex

11/04 2018

0.3.0

0.3.0.0

Copies data from a file to an SQLite database using regular expressions.

  Sources   Download

MIT

The Requires

 

file php console sqlite oop regex

18/03 2018

0.2.0

0.2.0.0

Copies data from a file to an SQLite database.

  Sources   Download

MIT

The Requires

 

file php console sqlite oop regex

16/03 2018

0.1.0

0.1.0.0

Copies data from a file to an SQLite database.

  Sources   Download

MIT

The Requires

 

file php console sqlite oop regex