Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will have a long and boring life.


comp / comp.unix.programmer / Re: mapping an sqlite3 table of files as files on the file system

SubjectAuthor
* mapping an sqlite3 table of files as files on the file systemJohanne Fairchild
+- Re: mapping an sqlite3 table of files as files on the file systemLawrence D'Oliveiro
`* Re: mapping an sqlite3 table of files as files on the file systemJanis Papanagnou
 `* Re: mapping an sqlite3 table of files as files on the file systemMuttley
  `* Re: mapping an sqlite3 table of files as files on the file systemKenny McCormack
   `- Re: mapping an sqlite3 table of files as files on the file systemMuttley

1
Subject: mapping an sqlite3 table of files as files on the file system
From: Johanne Fairchild
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 10 Sep 2024 23:30 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jfairchild@tudado.org (Johanne Fairchild)
Newsgroups: comp.unix.programmer
Subject: mapping an sqlite3 table of files as files on the file system
Date: Tue, 10 Sep 2024 20:30:01 -0300
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <87wmjj2ikm.fsf@tudado.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 11 Sep 2024 01:30:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="14a05a6863b5da5ee85d62aa8c950e50";
logging-data="3384797"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HLTwoPKmovXbXh3RqKXlKX1BGnlfuDFg="
Cancel-Lock: sha1:jZgNwJHf3RlJN78gx4TZqipN0iM=
sha1:L5AfI4452EUdp4rdzOgj3g6x7VU=
View all headers

Suppose I have a series of text files stored in an sqlite3 table. Can I
somehow read these files as if they're files on a certain directory?
Would I have to write a kernel driver for this? It seems to me that I
would have to.

Subject: Re: mapping an sqlite3 table of files as files on the file system
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 10 Sep 2024 23:38 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: mapping an sqlite3 table of files as files on the file system
Date: Tue, 10 Sep 2024 23:38:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vbql9s$37h9g$1@dont-email.me>
References: <87wmjj2ikm.fsf@tudado.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 11 Sep 2024 01:38:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4818e99c43a92fda07902f52f7adfbd5";
logging-data="3392816"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RUxLAGYydRc7FHtymFsF4"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:ad4gfE+k+PAeZgVhNGyOnRNoEnI=
View all headers

On Tue, 10 Sep 2024 20:30:01 -0300, Johanne Fairchild wrote:

> Suppose I have a series of text files stored in an sqlite3 table. Can I
> somehow read these files as if they're files on a certain directory?
> Would I have to write a kernel driver for this?

You could do something via FUSE. That allows you to implement your code
entirely as a userland process.

Subject: Re: mapping an sqlite3 table of files as files on the file system
From: Janis Papanagnou
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Wed, 11 Sep 2024 00:43 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.programmer
Subject: Re: mapping an sqlite3 table of files as files on the file system
Date: Wed, 11 Sep 2024 02:43:05 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vbqp2q$3898p$1@dont-email.me>
References: <87wmjj2ikm.fsf@tudado.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Sep 2024 02:43:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4cccfb93fc3b6135139a6f5e42b8931c";
logging-data="3417369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19J/F2nwYH/y2FJUYLYUsef"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:bfkOPEnH1yJeUXNU0aWcnR+Q50I=
In-Reply-To: <87wmjj2ikm.fsf@tudado.org>
View all headers

On 11.09.2024 01:30, Johanne Fairchild wrote:
> Suppose I have a series of text files stored in an sqlite3 table. Can I
> somehow read these files as if they're files on a certain directory?
> Would I have to write a kernel driver for this? It seems to me that I
> would have to.

An interesting question. - Being curious I searched for "mount sqlite
on file system" and got a couple links; the first one was
https://adamobeng.com/wddbfs-mount-a-sqlite-database-as-a-filesystem/
Maybe it's of some use. (Or maybe some other links of that search.)

Janis

Subject: Re: mapping an sqlite3 table of files as files on the file system
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Wed, 11 Sep 2024 07:11 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: mapping an sqlite3 table of files as files on the file system
Date: Wed, 11 Sep 2024 07:11:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vbrfrk$3fo3f$1@dont-email.me>
References: <87wmjj2ikm.fsf@tudado.org> <vbqp2q$3898p$1@dont-email.me>
Injection-Date: Wed, 11 Sep 2024 09:11:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0c8b46a4b68c46aa75dd3a0e97bfee69";
logging-data="3661935"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QVKemHcf3Oo3mjR/pl4ds"
Cancel-Lock: sha1:rfN4Elx0m+KiJsMUnXwXX4ONFYg=
View all headers

On Wed, 11 Sep 2024 02:43:05 +0200
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boringly babbled:
>On 11.09.2024 01:30, Johanne Fairchild wrote:
>> Suppose I have a series of text files stored in an sqlite3 table. Can I
>> somehow read these files as if they're files on a certain directory?
>> Would I have to write a kernel driver for this? It seems to me that I
>> would have to.
>
>An interesting question. - Being curious I searched for "mount sqlite
>on file system" and got a couple links; the first one was
>https://adamobeng.com/wddbfs-mount-a-sqlite-database-as-a-filesystem/
>Maybe it's of some use. (Or maybe some other links of that search.)

Don't see how you interact with it using any of the normal toolset unless you
map table -> directory and column -> file though it would be a very clunky
and inefficient way to use a relational DB.

Subject: Re: mapping an sqlite3 table of files as files on the file system
From: Kenny McCormack
Newsgroups: comp.unix.programmer
Organization: The official candy of the new Millennium
Date: Wed, 11 Sep 2024 11:13 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Re: mapping an sqlite3 table of files as files on the file system
Date: Wed, 11 Sep 2024 11:13:13 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vbru09$1rfjb$1@news.xmission.com>
References: <87wmjj2ikm.fsf@tudado.org> <vbqp2q$3898p$1@dont-email.me> <vbrfrk$3fo3f$1@dont-email.me>
Injection-Date: Wed, 11 Sep 2024 11:13:13 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1949291"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <vbrfrk$3fo3f$1@dont-email.me>, <Muttley@dastardlyhq.com> wrote:
>On Wed, 11 Sep 2024 02:43:05 +0200
>Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boringly babbled:
>>On 11.09.2024 01:30, Johanne Fairchild wrote:
>>> Suppose I have a series of text files stored in an sqlite3 table. Can I
>>> somehow read these files as if they're files on a certain directory?
>>> Would I have to write a kernel driver for this? It seems to me that I
>>> would have to.
>>
>>An interesting question. - Being curious I searched for "mount sqlite
>>on file system" and got a couple links; the first one was
>>https://adamobeng.com/wddbfs-mount-a-sqlite-database-as-a-filesystem/
>>Maybe it's of some use. (Or maybe some other links of that search.)
>
>Don't see how you interact with it using any of the normal toolset unless you
>map table -> directory and column -> file though it would be a very clunky
>and inefficient way to use a relational DB.

I can't quite tell from your post whether or not you actually read the link
given above. I just did and (tl;dr) basically agree with you that it looks
clunky, but I suppose that a) It is intended as proof-of-concept and b)
It's the sort of thing that appeals to people who like "Everything is a web
app" kind of thinking. I'm guessing that neither you nor I fall into that
classification.

That said, it looks like it is a two-step process:

1) You run his little utility - which is, of course, a black box to
most of us. It looks like it is written in Python, so it would be,
in theory at least, readable/understandable as-is. I.e., don't
need to go looking around for the source.

2) Then you "mount" it ("it" being the output of the previous step)
somewhere on the filesystem, and then you get what you want.

The details of step 2 are not specified; you are expected to already know
all about how that stuff (mounting "WebDAV" thingies) works already.

So, all in all, probably not of much use to either you or I.

--
Treating the stock market indexes as general measures of the well-being of a
society is like treating your blood pressure as an indicator of health. The
higher, the better, right? In fact, a high stock market is good for the investor
class, but it means the rest of us are getting screwed better than ever.

Subject: Re: mapping an sqlite3 table of files as files on the file system
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Wed, 11 Sep 2024 12:25 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: mapping an sqlite3 table of files as files on the file system
Date: Wed, 11 Sep 2024 12:25:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vbs27s$3jnov$1@dont-email.me>
References: <87wmjj2ikm.fsf@tudado.org> <vbqp2q$3898p$1@dont-email.me> <vbrfrk$3fo3f$1@dont-email.me> <vbru09$1rfjb$1@news.xmission.com>
Injection-Date: Wed, 11 Sep 2024 14:25:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0c8b46a4b68c46aa75dd3a0e97bfee69";
logging-data="3792671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f2dHkLlco/Fs9OUrSWbq4"
Cancel-Lock: sha1:i5TVO9B+J6CLXzrrFWidZhjymQs=
View all headers

On Wed, 11 Sep 2024 11:13:13 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) boringly babbled:
>In article <vbrfrk$3fo3f$1@dont-email.me>, <Muttley@dastardlyhq.com> wrote:
>>On Wed, 11 Sep 2024 02:43:05 +0200
>>Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boringly babbled:
>>>On 11.09.2024 01:30, Johanne Fairchild wrote:
>>>> Suppose I have a series of text files stored in an sqlite3 table. Can I
>>>> somehow read these files as if they're files on a certain directory?
>>>> Would I have to write a kernel driver for this? It seems to me that I
>>>> would have to.
>>>
>>>An interesting question. - Being curious I searched for "mount sqlite
>>>on file system" and got a couple links; the first one was
>>>https://adamobeng.com/wddbfs-mount-a-sqlite-database-as-a-filesystem/
>>>Maybe it's of some use. (Or maybe some other links of that search.)
>>
>>Don't see how you interact with it using any of the normal toolset unless you
>>map table -> directory and column -> file though it would be a very clunky
>>and inefficient way to use a relational DB.
>
>I can't quite tell from your post whether or not you actually read the link
>given above. I just did and (tl;dr) basically agree with you that it looks

I did but I've never used sqllite so I don't know what the json , tsv etc files
signify.

>clunky, but I suppose that a) It is intended as proof-of-concept and b)
>It's the sort of thing that appeals to people who like "Everything is a web
>app" kind of thinking. I'm guessing that neither you nor I fall into that

Yes, simple text or binary protocols seem to have gone out the window. Why
bother writing a few hundred lines of C client-server socket code when you can
waste time, resources and CPU cycles setting up a bloated web server in a
docker container and pass your data over http with all the back end nonsense
that entails getting and parsing it.

1

rocksolid light 0.9.8
clearnet tor