├── .github └── workflows │ └── main.yml ├── .gitignore ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── bin ├── console └── setup ├── gemfiles ├── ar_7.0.gemfile ├── ar_7.1.gemfile ├── ar_7.2.gemfile └── ar_8.0.gemfile ├── lib ├── seed-snapshot.rb ├── seed │ ├── configuration.rb │ ├── manifest.rb │ ├── mysql.rb │ ├── snapshot.rb │ └── version.rb └── seed_snapshot │ └── version.rb ├── seed-snapshot.gemspec └── test ├── cases ├── db_config.rb ├── dump_test.rb ├── helper.rb ├── manifest_test.rb ├── restore_test.rb └── test_case.rb ├── config.rb ├── config.yml ├── models ├── book.rb ├── rent.rb └── user.rb ├── schema └── schema.rb └── support ├── autorun.rb ├── config.rb ├── connection.rb ├── connection_helper.rb ├── seeds.rb └── seeds ├── 1.csv └── 2.csv /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/.gitignore -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/bin/setup -------------------------------------------------------------------------------- /gemfiles/ar_7.0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/gemfiles/ar_7.0.gemfile -------------------------------------------------------------------------------- /gemfiles/ar_7.1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/gemfiles/ar_7.1.gemfile -------------------------------------------------------------------------------- /gemfiles/ar_7.2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/gemfiles/ar_7.2.gemfile -------------------------------------------------------------------------------- /gemfiles/ar_8.0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/gemfiles/ar_8.0.gemfile -------------------------------------------------------------------------------- /lib/seed-snapshot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/lib/seed-snapshot.rb -------------------------------------------------------------------------------- /lib/seed/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/lib/seed/configuration.rb -------------------------------------------------------------------------------- /lib/seed/manifest.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/lib/seed/manifest.rb -------------------------------------------------------------------------------- /lib/seed/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/lib/seed/mysql.rb -------------------------------------------------------------------------------- /lib/seed/snapshot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/lib/seed/snapshot.rb -------------------------------------------------------------------------------- /lib/seed/version.rb: -------------------------------------------------------------------------------- 1 | module SeedSnapshot 2 | VERSION = "0.1.0" 3 | end 4 | -------------------------------------------------------------------------------- /lib/seed_snapshot/version.rb: -------------------------------------------------------------------------------- 1 | module SeedSnapshot 2 | VERSION = "0.7.0" 3 | end 4 | -------------------------------------------------------------------------------- /seed-snapshot.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/seed-snapshot.gemspec -------------------------------------------------------------------------------- /test/cases/db_config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/cases/db_config.rb -------------------------------------------------------------------------------- /test/cases/dump_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/cases/dump_test.rb -------------------------------------------------------------------------------- /test/cases/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/cases/helper.rb -------------------------------------------------------------------------------- /test/cases/manifest_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/cases/manifest_test.rb -------------------------------------------------------------------------------- /test/cases/restore_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/cases/restore_test.rb -------------------------------------------------------------------------------- /test/cases/test_case.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/cases/test_case.rb -------------------------------------------------------------------------------- /test/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/config.rb -------------------------------------------------------------------------------- /test/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/config.yml -------------------------------------------------------------------------------- /test/models/book.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/models/book.rb -------------------------------------------------------------------------------- /test/models/rent.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/models/rent.rb -------------------------------------------------------------------------------- /test/models/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/models/user.rb -------------------------------------------------------------------------------- /test/schema/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/schema/schema.rb -------------------------------------------------------------------------------- /test/support/autorun.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/support/autorun.rb -------------------------------------------------------------------------------- /test/support/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/support/config.rb -------------------------------------------------------------------------------- /test/support/connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/support/connection.rb -------------------------------------------------------------------------------- /test/support/connection_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/support/connection_helper.rb -------------------------------------------------------------------------------- /test/support/seeds.rb: -------------------------------------------------------------------------------- 1 | puts 'seeds' 2 | -------------------------------------------------------------------------------- /test/support/seeds/1.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5 2 | 6,7,8,9,10 3 | -------------------------------------------------------------------------------- /test/support/seeds/2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/waka/seed-snapshot/HEAD/test/support/seeds/2.csv --------------------------------------------------------------------------------