Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
aviation-pg
Advanced tools
This project uses the aviation data provided by the aviation-json project.
It will create a database (using versioned migrations) and keep it up to date with the JSON files provided by aviation-json by running a single command make
.
A PostgreSQL database named 'aviation' will be created and it will be rebuilt with the latest aviation information.
Keep in mind that the migrations will drop the tables and will re-generate them on every sync. This strategy is only temporally until we complete the aviation frontend app that this data backs up. Once we release v.1 of this module the migrations will not destroy existing tables. They will migrate :)
Before running a command you must have PostgreSQL installed download it. If you are a mac user the Postgress.app will simplify it.
To start run the command make
The configuration is at the database.json
file
{
"default": "pg",
"pg": {
"driver": "pg",
"user": "aviator",
"host": "localhost",
"database": "aviation"
}
}
The Makefile gets the username and database from this location.
Initially the user created for the db has no password, if you wish to set a password, you need to do it manually, you need to establish the password at the database.json
file and once you've created the db and the user, set the password with the following command:
psql -U aviator -d aviation -c '\\password'
Add the password to your config file:
{
"password": "your_password"
}
if you set the password on the config file before creating the user and the db, the Make workflow will fail.
make
will perform the following operations:
[WARN] The function "insert" is deprecated.
make migration-up
:
make migration-down
:
make db-clean
:
Inside the aviation db creates the following tables:
airport_id | latitude | longitude | name | nickname | iata | icao |
---|---|---|---|---|---|---|
Abu_Musa_Airport | 25°52′32″N | 055°01′58″E | Abu Musa Airport | Abumusa Airport | AEU | OIBA |
airline_id | logoLink | iata | icao | callsign | website |
---|---|---|---|---|---|
Vueling | //upload....230px-Logo_Vueling.svg.png | VY | VLG | VUELING | http://www.vueling.com |
airline_id | airport_id |
---|---|
Vueling | Barcelona%E2%80%93El_Prat_Airport |
Vueling | Leonardo_da_Vinci%E2%80%93Fiumicino_Airport |
airline_id | airport_id |
---|---|
Adria_Airways | Amsterdam_Airport_Schiphol |
Adria_Airways | Berlin_Tegel_Airport |
airport_id | airline_id |
---|---|
Amsterdam_Airport_Schiphol | Adria Airways |
Amsterdam_Airport_Schiphol | Aegean Airlines |
cities
todo: add cities.
city_id |
---|
Amsterdam (wiki path) |
airport_id | city_id ---|---|--- Amsterdam_Airport_Schiphol | (/wiki/)Amsterdam Berlin_Tegel_Airport | (/wiki/)Berlin
airport_id | direction | ft | m | surface |
---|---|---|---|---|
Apalachicola_Regional_Airport | 6/24 | 5,271 | 1,607 | Concrete |
Apalachicola_Regional_Airport | 13/31 | 5,251 | 1,601 | Concrete |
Apalachicola_Regional_Airport | 18/36 | 5,251 | 1,601 | Concrete |
city_id | airport_id |
---|---|
Amsterdam | Amsterdam_Airport_Schiphol |
Berlin | Berlin_Tegel_Airport |
FAQs
Creation of a database with the info provided from aviation-json
The npm package aviation-pg receives a total of 8 weekly downloads. As such, aviation-pg popularity was classified as not popular.
We found that aviation-pg 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.