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

app mssql_tiberius_schema_parser

Generates the schema of all tables in msql as a structure

11 releases

0.3.6 Mar 13, 2024
0.3.5 Mar 3, 2024
0.3.4 Feb 20, 2024
0.3.3 Jan 26, 2024
0.1.0 Jan 23, 2024

#411 in Database interfaces

Download history 19/week @ 2024-01-25 183/week @ 2024-02-15 28/week @ 2024-02-22 115/week @ 2024-02-29 88/week @ 2024-03-07 75/week @ 2024-03-14 7/week @ 2024-03-21 48/week @ 2024-03-28 22/week @ 2024-04-04

82 downloads per month

MIT license

42KB
958 lines

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

~9–19MB
~208K SLoC