Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozh/yourls-sqlite
SQLite driver for YOURLS
https://github.com/ozh/yourls-sqlite
sqlite yourls yourls-plugin
Last synced: 2 months ago
JSON representation
SQLite driver for YOURLS
- Host: GitHub
- URL: https://github.com/ozh/yourls-sqlite
- Owner: ozh
- Archived: true
- Created: 2015-04-23T21:46:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T07:42:40.000Z (almost 6 years ago)
- Last Synced: 2024-08-02T06:17:34.026Z (5 months ago)
- Topics: sqlite, yourls, yourls-plugin
- Language: PHP
- Size: 7.81 KB
- Stars: 10
- Watchers: 7
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome - YOURLS SQLite - SQLite driver for YOURLS. It is now considered outdated. (Plugins / S)
README
# SQLite Driver for YOURLS 1.7.1 & 1.7.2
## What
This is a custom DB layer that allows to use YOURLS with PDO + SQLite. This requires **YOURLS 1.7.1 or 1.7.2**, not before, not after. See [YOURLS releases](https://github.com/YOURLS/YOURLS/releases).
This is experimental, mostly to show how it should be done, ie without [hacking core file](https://github.com/YOURLS/YOURLS/wiki/Dont-Hack-Core) - see [YOURLS issue #1337](https://github.com/YOURLS/YOURLS/issues/1337) (1337, for real!).
If you notice something that doesn't work as expected, please open an issue with details on how to reproduce and wait for someone to submit a pull request to fix. If you can both submit the issue and the pull request, you're the boss!
## How
* Drop these files in `/user/`, next to your `config.php` (this is *not* a plugin)
* Load YOURLS: the first time, it will create a fresh SQlite DB in that same `user` directory
* Have fun## FAQ
##### *Doesn't work!*
See above##### *Will this break my existing install that uses MySQL?*
Nope! All the data stored in MySQL is untouched (you can test this driver with no SQL server running to be sure) and when you're done, simply delete (or rename) the `db.php` file and you'll get all your original data back from MySQL## License
Do whatever the hell you want with it