#database-schema #sql-server #sql-database #database-table #generate-table #structure #default

app mssql_tiberius_schema_parser

Generates the schema of all tables in msql as a structure

22 unstable releases (3 breaking)

0.4.2 Oct 18, 2024
0.3.14 Sep 3, 2024
0.3.13 Jul 21, 2024
0.3.6 Mar 13, 2024

#329 in Database interfaces

Download history 5/week @ 2024-07-05 111/week @ 2024-07-19 15/week @ 2024-07-26 119/week @ 2024-08-30 229/week @ 2024-09-06 84/week @ 2024-09-13 30/week @ 2024-09-20 13/week @ 2024-09-27 1/week @ 2024-10-04 182/week @ 2024-10-18

197 downloads per month

MIT license

55KB
1.5K SLoC

mssql_tiberius_schema_parser

Generates the schema of all tables in mssql as a structure.

How to use

cargo install mssql_tiberius_schema_parser mssql_tiberius_schema_parser.exe [OPTIONS] -u -p -t

Options: --host A host or ip address to connect to. - Defaults to localhost

  --port <PORT>
      The server port.
      - Defaults to `61363`

-d The database to connect to. - Defaults to master

-a Sets the application name to the connection, queryable with the APP_NAME() command. - Defaults to no name specified.

-i The instance name as defined in the SQL Browser. Only available on Windows platforms. If specified, the port is replaced with the value returned from the browser. If you write win_auth, please write down except the computer name - Required for win_auth - Defaults to no name specified.

-u The user to connect with. If you write win_auth, please write down except the computer name - Required

-p The password to connect with. - Required

-t The authentication type to use. - Required

      Possible values:
      - win_auth:    Use Windows Authentication
      - server_auth: Use SQL Server Authentication

  --use_proto_parser
      Use date time to string. add cli option with --use_proto_parser.
      - Defaults to false

  --use_split_file
      Use split file. add cli option with --use_split_file.
      - Defaults to false

  --path <PATH>
      The path to the rs file to execute.
      - Defaults to structs.rs

  --proto_path <PROTO PATH>
      The path to the proto file to execute.
      - Defaults to structs.proto

-h, --help Print help (see a summary with '-h')

-V, --version Print version

Dependencies

~12–25MB
~418K SLoC