sustc icon indicating copy to clipboard operation
sustc copied to clipboard

About user's register and userRecord's imports

Open xyluoxy opened this issue 2 years ago • 6 comments

Should the register and import of users' information share the same database? Should userRecord be imported only if there exists a user with same information (say, mid) registered?

xyluoxy avatar Dec 15 '23 14:12 xyluoxy

The entire testing process is divided into two steps:

  • The first step is to use the dbimport method you have completed to import data from the ser file into the database you designed yourself.

  • The second step is to use the API you have completed to perform create, read, update, and delete operations in the database imported in the first step, and to verify their correctness.

WhatWEat avatar Dec 16 '23 08:12 WhatWEat

@WhatWEat Hello, reviewer. Could you give a hint on how to test the API? It seems that parameters are needed when typing commands like register. Or we can only test our implementation using Benchmark?

Thank you!

dequeueing avatar Dec 16 '23 14:12 dequeueing

if you want to test register, here is a example(you can find more command in the io/sustc/command): register 123 123 123 123 MALE 1月1日 123 Please note that your IntelliJ IDEA encoding needs to be set to UTF-8, otherwise the date input will become garbled. To change to UTF-8, here is a CSDN tutorial

WhatWEat avatar Dec 17 '23 03:12 WhatWEat

While using commands in bootRun, @ShellMethod("user delete") like this, not like @ShellMethod(key = "db groupmember", value = "List group members") with "key = ..." , user delete or the method name cannot be recognized as a command, I'm unable to test my methods.

And, is try (Connection connection = dataSource.getConnection()) unable to use? I make a main method to use this, and everytime it ends with errors.

Gin5567 avatar Dec 17 '23 12:12 Gin5567

@Gin5567 Maybe you can follow issue #43 for the dataSource problem.

sses7757 avatar Dec 17 '23 12:12 sses7757

@Gin5567 Maybe you can follow issue #43 for the dataSource problem.

Thanks! Problem solved.

Gin5567 avatar Dec 17 '23 12:12 Gin5567