Tau
b096a79f95
Simplify aime_player schema
2019-11-06 17:29:07 -05:00
Tau
82bd9ad7bb
Additional assorted layering cleanups
2019-11-06 17:29:07 -05:00
Tau
6a4ac795b2
Heal the layer break around the Id<> type
2019-11-06 17:29:07 -05:00
Tau
650e05310d
Flip-flop on debug logging code style
2019-11-06 17:29:07 -05:00
Tau
bbb5a3b408
aimedb/pipeline.ts: Silence a deprecation warning
2019-11-06 17:28:30 -05:00
Tau
f9970fa81c
Force explicit conversion of rows fetched from SQL DB
...
Everything is a scalar value now, and while this does involve more
boilerplate it will also catch type conversion issues like
"1" + 0 === "10" in the future.
2019-11-06 17:28:30 -05:00
Tau
3e6b4f4798
Add an SQL DB abstraction layer
...
Because what self-respecting Enterprise(R) project doesn't have
one of those?
2019-11-06 17:28:30 -05:00
Tau
4dd3f39472
Fix sql-bricks import style
2019-11-06 17:28:30 -05:00
Tau
6ab2112ea9
Stop using SQL namespaces ("schemas")
...
This is in preparation for a transition to SQLite. SQLite does have
a similar concept called "attached databases", but it's kind of a
pain to deal with if you're casually browsing a database from the
`sqlite3` CLI so we'll just use some slightly uglier explicitly
namespaced table name identifiers instead.
2019-11-06 17:28:30 -05:00
Tau
9697b4b06e
Use debug package for logging
2019-11-06 17:28:30 -05:00
Tau
4298810728
aimedb: Defensively close connection after a Goodbye
...
We should probably also add request timeouts and such.
2019-11-06 17:28:30 -05:00
Tau
ff4545d468
aimedb: Return decimal IDm as access code
2019-11-06 17:28:30 -05:00
Tau
9dd45558ec
aimedb: Stub a FeliCa lookup response
2019-11-06 17:28:30 -05:00
Tau
dc06a9652f
wip fix profile create id propagation
2019-11-06 17:28:30 -05:00
Tau
1f257cccc4
wip fucking pipeline callback shit
2019-11-06 17:28:30 -05:00
Tau
98c9f9106d
Share AimeId typedef
2019-11-06 17:28:30 -05:00
Tau
feb922c171
aimedb: Add AimeId strong typing
2019-11-06 17:28:30 -05:00
Tau
b4ae25eb57
aimedb: Wire up backend
2019-11-06 17:28:30 -05:00
Tau
8290e5a821
aimedb: Add Postgres backend
2019-11-06 17:28:30 -05:00
Tau
fc9168b639
aimedb: Add repository interface
2019-11-06 17:28:30 -05:00
Tau
2a153b5baf
aimedb: Add initial model definitions
2019-11-06 17:28:30 -05:00
Tau
27407d5387
aimedb: Enhance typing
2019-11-06 17:28:30 -05:00
Tau
8323e3ee7c
aimedb: Hoist handlers
2019-11-06 17:28:30 -05:00
Tau
38449c3117
aimedb: Fix missing lookup status field decl
2019-11-06 17:28:30 -05:00
Tau
c2f7e9fe19
wip
2019-11-06 17:28:29 -05:00
Tau
679accd74d
wip
2019-11-06 17:28:29 -05:00
Tau
b460fa1aa0
wip
2019-11-06 17:28:29 -05:00
Tau
acc1590aa2
aimedb: Deal with redundant command codes
...
Some messages apparently use more than one command code depending
on the game. The meaning of the 0x0006 response code is also
overloaded apparently, so that's cool. Fortunately that's the
game's problem and not ours.
2019-11-06 17:28:29 -05:00
Tau
3d41b5a780
aimedb/decoder.ts: Fix typo
2019-11-06 17:28:29 -05:00
Tau
f0e7a82f42
aimedb: Remove ident fields from Goodbye message
...
They're not present in this message, it's just zero bytes.
2019-11-06 17:28:29 -05:00
Tau
02c6e6fe2f
Fix tests
2019-11-06 17:28:29 -05:00
Tau
b278c6bf08
aimedb: Refactor codec
2019-11-06 17:28:29 -05:00
Tau
bc8185b26c
aimedb/encoder.ts: Drop options param
2019-11-06 17:28:29 -05:00
Tau
cbc1e29ed7
aimedb/decoder.ts: Drop options param
2019-11-06 17:28:29 -05:00
Tau
602335941c
aimedb/cmd.ts: Split into decoder, encoder
2019-11-06 17:28:29 -05:00
Tau
2f1c9dd476
Switch to TypeScript
...
This just makes the minimum changes necessary to "compile".
2019-11-06 17:28:29 -05:00
Tau
1337fc21f3
Apply Prettier
2019-11-06 17:28:29 -05:00
Tau
285167b255
Implement aimedb log message
2019-11-06 17:28:29 -05:00
Tau
80897a49b7
Implement AimeDB registration cmd
2019-11-06 17:28:29 -05:00
Tau
2e8d6997ee
Add cosmetic line break
2019-11-06 17:28:29 -05:00
Tau
246f07f69a
Implement initial Aime lookups
2019-11-06 17:28:29 -05:00
Tau
be329dd9ff
Fixups
2019-11-06 17:28:29 -05:00
Tau
ed6a4675af
Eliminate Framer
2019-11-06 17:28:29 -05:00
Tau
21b90ee323
Add lookup cmd decoder
2019-11-06 17:28:29 -05:00
Tau
b678c0c551
Add Aimedb command tests
2019-11-06 17:28:29 -05:00
Tau
b7da410b44
Aimedb: Adjust deframe/decode responsibility split
2019-11-06 17:28:29 -05:00
Tau
377a795f9a
Formatting
2019-11-06 17:28:29 -05:00
Tau
a44c5c00a7
Split up aimedb.js
2019-11-06 17:28:29 -05:00