updated shell scripts to use binaries

This commit is contained in:
2023-04-04 20:02:06 +02:00
parent 62c527acf8
commit 14761fa3e5
6 changed files with 21 additions and 37 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
# Run basebox broker from the samples/toodo/bbconf directory
PYO3_PYTHON=python3 cargo run --manifest-path ../../../broker/Cargo.toml -- -c broker-config.toml
../../bin/broker -c broker-config.toml

View File

@ -2,4 +2,4 @@
#
# Compile the todo schema.
#
cargo run --manifest-path=../../../bbc/Cargo.toml -- --prefix=bb_todo -f todo_schema.graphql
../../bin/bbc --prefix=bb_todo -f todo_schema.graphql

View File

@ -1,3 +1,3 @@
#!/bin/sh
# Run basebox dbproxy from the samples/toodo/bbconf directory
cargo run --manifest-path ../../../dbproxy/Cargo.toml -- -c dbproxy-config.toml
../../bin/dbproxy -c dbproxy-config.toml

View File

@ -1,18 +0,0 @@
# Sample toml file; for testing only
[generic]
# the name of the project
project_name = "bb_todo"
# the folder where the generated files will be placed. If not specifed, the project name will be
# used to create a folder by that name in the current directory. Note that the folder must not exist
# yet in order to make ensure that an existing installation will not be overwritten by accident.
output = "output"
[log]
# log level; can be off, error, warn, info, debug, trace
log_level = "info"
[graphql]
schema = "todo_schema.graphql"
[database]

View File

@ -39,7 +39,7 @@ type Query {
getUser(
username: String!
): User @bb_resolver(_type: select, _object: User, _filter: { username: { _eq: "$username" } })
}
type Mutation {
@ -64,8 +64,8 @@ type Mutation {
createTask(
title: String!,
description: String,
completed: Boolean!, # default not implemented yet, this needs to be added as it's non-nullable
list: List! # list needs to be specified as it's non-nullable
completed: Boolean!, # default not implemented yet, this needs to be added as it's non-nullable
list: List! # list needs to be specified as it's non-nullable
user: User! # username needs to be specified as it's non-nullable
): Task @bb_resolver(_type: insert, _object: Task, _fields: { title: "$title", description: "$description", completed: "$completed", list: "$list", user: "$user" })