shiyan/file-to-sqlite 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shiyan/file-to-sqlite

Composer 安装命令:

composer require shiyan/file-to-sqlite

包简介

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

README 文档

README

A command-line utility for copying data from a file to an SQLite database file using regular expressions.

Perfect for converting automatic log files, reports, etc.

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

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

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.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固