cloudxtreme / fuse-db Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mignov/fuse-db
Facility to mount DB system to the Linux filesystem
License: GNU General Public License v3.0
This project forked from mignov/fuse-db
Facility to mount DB system to the Linux filesystem
License: GNU General Public License v3.0
FUSE-Db connector design document ================================== This is the design document for MySQL connector to the filesystem written using the FUSE (Filesystem-in-UserSpace-Environment) library. MySQL FUSE connector is the standard Linux application that's has been both tested and developed on Fedora-13 i386 box by Michal Novotny in order to provide facility to access the data in MySQL database like they were standard directories or files. The connector is creating 4 levels on the mountpoint where 3 levels are directory levels (levels 1 to 3) and one level is the file level (level 4). Both databases and tables are presented using directory entries as well as primary key value is being presented on 3rd level. If there's no primary key in the table this 3rd level directory is not having the executable bit set which means entering such a directory is disabled. On the 4th level the database table columns are being shown as files. On a new file creation a new field named the same as the file name is being created in the database. Be aware of the fact that deleting the files just sets the particular column in the table to NULL value *not deleting it at all*. There's a short summary of functionality. Levels and their meaning are as follows: .../DBNames/Table/PKValue/column (path) 0 1 2 3 4 (level) Read implementation for supported levels with corresponding queries: - level 1 -> SHOW DATABASES - level 2 -> SHOW TABLES - level 3 -> SELECT ${PRIMARY_KEY} FROM ${TABLE} - level 4 -> SHOW FIELDS FROM ${TABLE} Write implementation for supported levels with corresponding queries: - level 1 -> CREATE DATABASE - level 2 -> CREATE TABLE WITH VARCHAR(255) PRIMARY KEY - level 3 -> INSERT INTO ${TABLE}(${PK}) ... - level 4 -> UPDATE TABLE Supported operations are getattr, readdir, read, open, mkdir, rmdir, create, write, unlink and truncate. Level 1-3 entries are *always* directories, returning -ENOTDIR/-EPERM on level 4 actions. Level 4 entries are *always* files, return -EISDIR/-EPERM on level 1 -- level 3 actions Thoughts for consideration: - Read enhancement -> don't show NULL columns for particular record? - Support for more DB systems, like e.g. PostgreSQL etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.