Skip to content

testing sqlite #156

Open
Open
@judell

Description

@judell

re: #134 (please test)

I think I am close.

 algernon --sqlite=xmlui.db --server . :8080

-------------------------------------------------
Server directory:	.
Server address:		:8080
Database:		SQLite
Options:		[Server]
Cache mode:		On
Cache size:		1048576 bytes
TLS certificate:	cert.pem
TLS key:		key.pem
Request limit:		10/sec per visitor
Large file threshold:	44040192 bytes
Large file timeout:	10 sec
INFO[0000] Serving HTTP/2 on https://localhost:8080/    
ERRO[0000] open cert.pem: no such file or directory. Not serving HTTP/2. 
INFO[0000] Use the -t flag for serving regular HTTP.    
INFO[0000] Serving HTTP on http://localhost:8080/      

It created some empty tables:

sqlite3 xmlui.db 
SQLite version 3.43.2 2023-10-10 13:08:14
Enter ".help" for usage hints.
sqlite> .tables
test         unconfirmed  usernames    users   

That lack permission:

curl http://localhost:8080/data
Permission denied.
 /data and /repos have user permissions, /admin has admin permissions and / is public, by default. This is configurable.

How would I make /data public?

What I really want is a lua script that sets up a public end point that can receive and run arbitrary sql. Is there a way?

Thanks! This is a very cool project and I think what I want is likely possible, hope so!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions