https://github.com/memelang-net/memesql4
Memelang v4 to SQL query library
https://github.com/memelang-net/memesql4
cypher cypher-query-language graphql nosql nosql-database
Last synced: about 1 month ago
JSON representation
Memelang v4 to SQL query library
- Host: GitHub
- URL: https://github.com/memelang-net/memesql4
- Owner: memelang-net
- Created: 2025-03-24T20:29:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-21T23:44:44.000Z (about 1 year ago)
- Last Synced: 2025-04-22T19:13:59.983Z (about 1 year ago)
- Topics: cypher, cypher-query-language, graphql, nosql, nosql-database
- Language: Python
- Homepage: https://www.memelang.net/04/
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
***This repo is depriciated. Click here for the new [memesql6](https://github.com/memelang-net/memesql6)***
# memesql4
This is prototype Python/Postgres implementation of [Memelang v4](https://memelang.net/04/). This Python script receives Memelang queries, converts them to SQL, executes them on a Postgres database, then returns results as a Memelang string.
## Files
* *db.py* Postgres database configurations and helper functions
* *memelang.py* library to decode Memelang queries and execute in Postgres
* *presidents.meme* example Memelang data for the U.S. presidents
## Installation
Installation on Ubuntu:
# Install packages
sudo apt install -y git postgresql python3 python3-psycopg2
sudo systemctl start postgresql
sudo systemctl enable postgresql
# Download files
git clone https://github.com/memelang-net/memesql4.git memesql
cd memesql
# Configure the conf.py file according to your Postgres settings
# Create database and tables
sudo python3 ./memelang.py install
# (Optional) load example presidents data
python3 ./memelang.py file ./presidents.meme
## Example CLI Usage
Execute a query:
python3 ./memelang.py get "student=JohnAdams ="
# Output:
student=JohnAdams college=Harvard
## Legal
Copyright 2025 HOLTWORK LLC. Patents Pending.