diff --git a/Cargo.lock b/Cargo.lock index a50b2e5..e98613d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2000,7 +2000,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] -name = "sqlite-studio" +name = "sql-studio" version = "0.1.8" dependencies = [ "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 610ea79..2965257 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "sqlite-studio" +name = "sql-studio" version = "0.1.8" edition = "2021" -repository = "https://github.com/frectonz/sqlite-studio" -description = "Single binary, single command SQLite database explorer." -homepage = "https://sqlite-studio.frectonz.io/" +repository = "https://github.com/frectonz/sql-studio" +description = "Single binary, single command SQL Database Explorer." +homepage = "https://sql-studio.frectonz.io/" authors = ["frectonz"] [dependencies] diff --git a/README.md b/README.md index ae4feb8..d60c807 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ -# SQLite Studio +# SQL Studio -Single binary, single command SQLite database explorer. SQLite studio supports opening both *local SQLite DB files*, *libSQL servers* and *PostgreSQL*. +Single binary, single command SQL database explorer. SQL studio supports opening *local SQLite DB files*, *libSQL servers* and *PostgreSQL*. ### Local SQLite DB File ```bash -sqlite-studio sqlite [sqlite_db] +sql-studio sqlite [sqlite_db] ``` ### Remote libSQL Server ```bash -sqlite-studio libsql [url] [auth_token] +sql-studio libsql [url] [auth_token] ``` ### PostgreSQL Server ```bash -sqlite-studio postgres [url] +sql-studio postgres [url] ``` ## Features @@ -27,7 +27,7 @@ sqlite-studio postgres [url] - Infinite scroll rows view. - A custom query page that gives you more access to your db. -More features available on the [releases page](https://github.com/frectonz/sqlite-studio/releases). +More features available on the [releases page](https://github.com/frectonz/sql-studio/releases). ## Screenshots @@ -38,37 +38,37 @@ More features available on the [releases page](https://github.com/frectonz/sqlit ### Tables Page ![tables](./screenshots/tables.png) -![infinite scroll](https://github.com/frectonz/sqlite-studio/assets/53809656/b6d8f627-4a21-46c2-bef7-8dea206b3689) +![infinite scroll](https://github.com/frectonz/sql-studio/assets/53809656/b6d8f627-4a21-46c2-bef7-8dea206b3689) ### Query Page ![query](./screenshots/query.png) -![query gif](https://github.com/frectonz/sqlite-studio/assets/53809656/3e47a890-ddd9-4c7f-be88-53e30cc23b15) +![query gif](https://github.com/frectonz/sql-studio/assets/53809656/3e47a890-ddd9-4c7f-be88-53e30cc23b15) ## Installation ### Install prebuilt binaries via shell script (MacOS and Linux) ```sh -curl --proto '=https' --tlsv1.2 -LsSf https://github.com/frectonz/sqlite-studio/releases/download/0.1.8/sqlite-studio-installer.sh | sh +curl --proto '=https' --tlsv1.2 -LsSf https://github.com/frectonz/sql-studio/releases/download/0.1.8/sql-studio-installer.sh | sh ``` ### Install prebuilt binaries via powershell script ```sh -powershell -c "irm https://github.com/frectonz/sqlite-studio/releases/download/0.1.8/sqlite-studio-installer.ps1 | iex" +powershell -c "irm https://github.com/frectonz/sql-studio/releases/download/0.1.8/sql-studio-installer.ps1 | iex" ``` ### Updating ```bash -sqlite-studio-update +sql-studio-update ``` ## Nix ```bash -nix shell github:frectonz/sqlite-studio +nix shell github:frectonz/sql-studio ``` ## Contributing @@ -76,12 +76,12 @@ nix shell github:frectonz/sqlite-studio Before executing `cargo run` you need to build the UI because the rust app statically embedded the UI files in the binary. ```bash -git clone git@github.com:frectonz/sqlite-studio.git -cd sqlite-studio +git clone git@github.com:frectonz/sql-studio.git +cd sql-studio nix develop # if you use nix cd ui npm install npm run build cd .. -cargo run +cargo run ``` diff --git a/flake.nix b/flake.nix index 5efaf35..bd545b6 100644 --- a/flake.nix +++ b/flake.nix @@ -61,10 +61,10 @@ }); docker = pkgs.dockerTools.buildLayeredImage { - name = "sqlite-studio"; + name = "sql-studio"; tag = "latest"; created = "now"; - config.Cmd = [ "${bin}/bin/sqlite-studio" "--address=0.0.0.0:3030" "sqlite" "preview" ]; + config.Cmd = [ "${bin}/bin/sql-studio" "--address=0.0.0.0:3030" "sqlite" "preview" ]; config.Expose = "3030"; }; in diff --git a/ui/README.md b/ui/README.md deleted file mode 100644 index bb15685..0000000 --- a/ui/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# React + TypeScript + Vite - -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. - -Currently, two official plugins are available: - -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: - -- Configure the top-level `parserOptions` property like this: - -```js -export default { - // other rules... - parserOptions: { - ecmaVersion: "latest", - sourceType: "module", - project: ["./tsconfig.json", "./tsconfig.node.json"], - tsconfigRootDir: __dirname, - }, -}; -``` - -- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` -- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` -- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list diff --git a/ui/index.html b/ui/index.html index 75d3192..f7a25f8 100644 --- a/ui/index.html +++ b/ui/index.html @@ -4,7 +4,7 @@ - SQLite Studio + SQL Studio diff --git a/ui/src/routes/__root.tsx b/ui/src/routes/__root.tsx index 7a3be06..7719b3c 100644 --- a/ui/src/routes/__root.tsx +++ b/ui/src/routes/__root.tsx @@ -39,7 +39,7 @@ export function Root() { className="flex items-center gap-2 text-lg font-semibold md:text-base" > - SQLite Studio + SQL Studio @@ -108,7 +108,7 @@ function MobileNav() { className="flex items-center gap-2 text-lg font-semibold" > - SQLite Studio + SQL Studio Overview @@ -134,7 +134,7 @@ function MobileNav() { className="flex sm:hidden items-center gap-2 text-lg font-semibold md:text-base" > - SQLite Studio + SQL Studio );