Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/x2bool/sqliteclip
SQLite extension for working with operating system's clipboard (copy/paste functions)
https://github.com/x2bool/sqliteclip
Last synced: 7 days ago
JSON representation
SQLite extension for working with operating system's clipboard (copy/paste functions)
- Host: GitHub
- URL: https://github.com/x2bool/sqliteclip
- Owner: x2bool
- License: mit
- Created: 2023-06-11T18:22:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-07T15:05:35.000Z (7 months ago)
- Last Synced: 2024-10-28T05:33:01.740Z (9 days ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sqlite - github.com/x2bool/sqliteclip - Work with operating system's clipboard. (Extensions)
README
# SQLite extension for working with operating system's clipboard
This extension adds the following functions to SQLite:
| | Copy | Paste |
|--|------|-------|
| Long name | CLIPBOARD_COPY(text) | CLIPBOARD_PASTE() |
| Short name | CLIP_COPY(text) | CLIP_PASTE() |### How to build
```bash
cargo build --release
```This step will produce `libsqliteclip.so` or `libsqliteclip.dylib` or `sqliteclip.dll` depending on your operation system.
### How to use
Assuming you have sqlite3 command line tools installed, and `libsqliteclip` library in your current directory:
```bash
sqlite3 # will open SQLite CLI
> .load libsqliteclip # or "sqliteclip" on Windows
```This will load `sqliteclip` module, and make `CLIPBOARD_COPY` and `CLIPBOARD_PASTE` functions available.