-
Notifications
You must be signed in to change notification settings - Fork 11
feature: export dataview query result to table #5
Comments
Hi, sure, can you send me an example data view query + Markdown files?
Also, I would be interested in the SQL query that you are planning to use.
- Camille
18 nov. 2022, 23:27 de ***@***.***:
…
Hello there!
Do you think it would be possible for you to create such a method, that could populate an SQL table using the results of a dataview query, rather than the frontmatter?
Table name would be the note's name, and there would be a single dataview query on the note, and your code would upload the result as it is rendered by the dataview (with column names and values)
I am desperate to find some sort of solution so i can easily do an SQL query on the data. The current method of a json string being uploaded into a single record is not suitable for me unfortunately...
Thank you for your kind answer!
—
Reply to this email directly, > view it on GitHub <#5>> , or > unsubscribe <https://github.com/notifications/unsubscribe-auth/ADKG2SWGTKOCM6H33CKVYNLWI77ELANCNFSM6AAAAAASE557XE>> .
You are receiving this because you are subscribed to this thread.> Message ID: > <clouedoc/postgresql-obsidian/issues/5> @> github> .> com>
|
Please find a very basic set of markdown files on the link : https://drive.google.com/file/d/19xncVZ782mDXk1ZbksOiAnQAlOZV45GF/view?usp=sharing My use case would be that i build all the RolePlaying elements in Obsidian (characters, items, etc) and upload them using their metadata to SQL, so my gameserver can query it and use all the provided data for the online game. Should a reverse query would be possible, please let me know, because that would be non plus ultra! Oh and i would love to buy you a coffe, or somehow show my gratitude! Please give me a paypal or anything where i can do that! ;) |
That's a cool use case 😮
Yeah that would be nice.
I sure would love a coffee, but wait until you get your feature unless you're already making use of this plugin.. Otherwise I will get affected by reactance 🙂 I will setup a GitHub sponsors in the afternoon Implementation detailsUser experienceHere's what I'm thinking about, based on your suggestions:
Triggers:
Database stuffCreating the table
Uploading each row
Technical challengeThe problems here are:
|
As for the technical challenges:
I am not sure of the available methods, but i would approach by doing simple math with all columns' values and if it fails then stick to varchar().
I would be perfectly fine with destroying all tables and re-creating them when uploading from Obsidian to SQL, to eliminate any overwrite or duplication errors.
This i think can actually be skipped. Let's take the Obsidian as the ultimate vault of data and information. The backway synchronization from SQL could cause severe data loss if the database would become corrupt... |
Hello there!
Do you think it would be possible for you to create such a method, that could populate an SQL table using the results of a dataview query, rather than the frontmatter?
Table name would be the note's name, and there would be a single dataview query on the note, and your code would upload the result as it is rendered by the dataview (with column names and values)
I am desperate to find some sort of solution so i can easily do an SQL query on the data. The current method of a json string being uploaded into a single record is not suitable for me unfortunately...
Thank you for your kind answer!
The text was updated successfully, but these errors were encountered: