![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Import data from file to PostgreSQL database.
$ npm install pgimport -g
$ pgimport
Usage: pgimport [options]
Options:
-h, --help output usage information
-v, --version output the version number
--connect <connect> Db connection string
--from <from> Source folder or file
--to <to> Destination table
--local-dir <local_dir> Local directory where remote files are synced, default=/tmp/pgimport
--access-key <access_key> AWS access key
--secret-key <secret_key> AWS secret key
--ignore-attrs <attrs_list> Ignore attributes
--map <map_file> File path containing the attribute/field mapping
-p, --processors <processors> Number of processors, default=1
-r, --recursive [true|false] Recursive copy, default=false
-f, --force [true|false] Non-interactive, default=false
-d, --debug [true|false] Show debug messages, default=false
$ pgimport --connect='user@localhost' --to='public.logs' --from='/path/to/file.log'
$ pgimport --connect='user@localhost' --to='public.logs' --from='/path/to/file.log.gz'
$ pgimport --connect='user@localhost' --to='public.logs' --from='s3://bucket/folder' -r -f
Data records should be in a valid JSON format. Each line represents a row in the database table with JSON attribute names as column names.
$ cat sample.log
{ "ts":"2017-06-01T01:14:09Z", "event":"pageview", "url":"http://www.abc.com" }
{ "ts":"2017-06-01T01:39:51Z", "event":"pageview", "url":"http://www.def.com" }
{ "ts":"2017-06-01T02:11:47Z", "event":"pageview", "url":"http://www.ghi.com" }
The general form for a connection string:
[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
Examples:
localhost
localhost:5433
localhost/mydb
user@localhost
user:secret@localhost
other@localhost/otherdb?connect_timeout=10
FAQs
Import data from file to PostgreSQL database.
The npm package pgimport receives a total of 0 weekly downloads. As such, pgimport popularity was classified as not popular.
We found that pgimport demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.