Giter Club home page Giter Club logo

lahman-dbs's Introduction

Lahman travelling through the years

Project Status: Active - The project has reached a stable, usable state and is being actively developed.

This project contains MySQL dumps for Lahman databases (Major League Baseball) through the years.

This data has been extracted thanks to Webucator scripts in GitHub, awesome work!

License: CC0-1.0

Sabermetrics will set us free!

The following SQL scripts provide a database called lahmansbaseballdb with the following tables:

  • AllStar
  • Appearances
  • Batting
  • BattingPost
  • Fielding
  • FieldingOF
  • FieldingOFSplit
  • HomeGames
  • Managers
  • ManagersHalf
  • Parks
  • People
  • Pitching
  • PitchingPost
  • SeriesPost
  • Teams
  • TeamsFranchises
  • TeamsHalf

Since 2021, the following tables/files are ignored/excluded:

  • Awards managers
  • Awards share managers
  • Awards players
  • Awards share players
  • College playing
  • Hall of fame
  • Salaries
  • Schools

Why is that? Since Feb 25 2022, these files were moved to another directory, outside of the core in baseballdatabank of ChadwichBureau... these files are outdated (no changes since 2018), so I decided not to include them in the core database.

Also includes some tables added by Webucator:

  • Leagues
  • Divisions

For further information on tables and columns, read the content guide from Sean Lahman.

Instructions

With HeidiSQL:

  • Connect to your running MySQL server
  • File > Load SQL file
  • Select year file

You can either:

  • run the file directly on the server (without loading it in editor)
  • load the file in editor (might cause large memory usage)

Migrate to SQLite3

As Webucator indicates, you can migrate this MySQL database to SQLite with MySQLToSQlite3 (Python package), executing the following command:

mysql2sqlite -f lahmansbaseballdb.sqlite -d lahmansbaseballdb -u 'mysql-user' -p 'mysql-psw'

This action can be also reversed, from SQLite to MySQL.

lahman-dbs's People

Contributors

beelzenef avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.