1
0
mirror of https://github.com/Eyre-S/sekai-scores.git synced 2024-11-22 03:04:55 +08:00
Commit Graph

10 Commits

Author SHA1 Message Date
a0e62de2c4
add DDL and getSong for database api. fix /database no param bug 2023-01-22 16:08:27 +08:00
f4a58a81db
complete difficulty import from sekai-master-db 2022-12-08 14:47:46 +08:00
7d503f3723
complete cli import song from sekai-master-db
- and added database struct can execute some postgres sekai database action
  - now can insert a Song (without its Difficulties)
  - now can search if a Song exists(by id)
  - added a SekaiDifficulties type struct targeting to database type
  - added a struct SekaiSongDifficulties.DatabaseStruct targeting to database its table struct
- added a class PostgresSession for manager a database action flow
  - and reforged PostgresConfig#connect() to implement it
2022-12-07 22:19:16 +08:00
944b57c012
complete sekai-master-db song(music) parse
- added charset param in database import command
- moved PostgresConfig to sekai-db proj
- added dependency gson
- added data_tool/sekai_master_db with a Music which can parse sekai-master-db musics.json and convert it to the Song object
2022-12-07 13:27:32 +08:00
21dbb194fd
change data/meta definition.
- change the id and seq and name def of SongUnit
- change and added fields to Song
- change and added fields to Difficulty
- add subproj sekai-database for db connection and action(empty currently)
- add sekai-cli command database to execute database manager action(no implementation currently)
2022-12-05 22:16:06 +08:00
2fd49d2bdb
add database config class in cli. add a function that can get all songs object from songs definition class.
- changed the target database from mysql to postgresql
  - so the db.table_prefix changed to db.struct.
- added getAll on Difficulties type
- renamed sekai-scores-db to sekai-meta
- add a new resource file, it will be the next song data storage method.
2022-11-28 18:03:21 +08:00
0ad227ac8e
add parse for --user param in add command 2022-11-26 21:49:58 +08:00
af53ed7f18
add config command with create/list/show with --user/--sys, add global param --debug/--verbose
- set default _debug output to false
  - add global param --debug/--verbose to enable _debug output
- changed user config store path
  - on windows, it will be "~/AppData/Roaming"
  - on linux, it still is "~/.config"
- added supported to system global config
  - which means "C:/ProgramData" on Windows and "/etc" on linux
  - the system global config can be override by user config
- add config command
  - with param --user/--sys, which can control config command do on which config field. the default is user.
  - with subcommand create, it can create sekai-scores config dir and config file. it follows config field.
  - with subcommand list/show, it can show the config loaded. it shows all of the config will be load. so, it do not follow config field setting.
  - without subcommand, it will output the config file path.
2022-11-25 20:43:46 +08:00
e6cbab2d3c
add a CLI program, which can read config, simple parse and echo a basic score
- CLI add config read, from $HOME/.config/sekai-scores/sekai-scores.properties.
  - now it can read a pjsekai user id, and the sekai-scores database config
- add a command `add`
  - it now can parse 9 params from args, or let user input them in cli, to build a basic score
  - it can echo the score, which looks just like the result score screen in game
- now the sekai-cli build script supports 'application' implementation, and supports UTF-8 and uses spotbugs-annotations.
2022-11-24 20:42:03 +08:00
f51fbab745
init project (and a subproject cli) 2022-10-09 00:49:26 +08:00