removed SQLAlchemy ORM stuff
This commit is contained in:
1 parent
6dcb020bb5
commit
e6d3f5c7b7
5 files changed
+60
-85
No files matched your search
@@ -0,0 +1,7 @@
|
||||
select
|
||||
threads.name,
|
||||
threads.forum
|
||||
threads.id
|
||||
from threads
|
||||
where threads.forum_id = ?
|
||||
;
|
||||
@@ -0,0 +1,7 @@
|
||||
select
|
||||
users.id,
|
||||
users.name,
|
||||
users.passhash
|
||||
from users
|
||||
where users.name = ?
|
||||
;
|
||||
@@ -0,0 +1,7 @@
|
||||
select
|
||||
forum.name,
|
||||
forum.id
|
||||
from user_forums
|
||||
inner join forums on user_forums.forum_id = forums.id
|
||||
where user_forums.user_id = ?
|
||||
;
|
||||
@@ -0,0 +1,7 @@
|
||||
insert into messages (
|
||||
user,
|
||||
thread,
|
||||
content,
|
||||
time
|
||||
) values (?, ?, ?, ?)
|
||||
;
|
||||
Reference in new issue
Block a user