Caution
Quark Server is deprecated. Please, use Quark Cloud instead.
This documentation is for Quark 3.0.0 in development.
ℹ️ Note for users of Quark older 3.0.0
For older versions of Quark, please, search for README.md in the release commit with tag you want. We are currently working on a documentation system with multiple versions. Thank you.
Instructions are used to create tables, query data, and much more.
Adds a new column to a table
Permission: column.add
Parameters:
-
definition: column
-
table: str
-
generator: generator
Syntax:
add column (column: definition): table = str, generator = generator;
Changes records match the condition
Permission: table.change
Parameters:
-
table: str
-
selector: selector
-
changer: changer
Syntax:
change in (str: table): selector = selector, changer = changer;
Changes the server port
Permission: server.port.change
Parameters:
port: int
Syntax:
change port to (int: port);
Deletes all the tables inside the database
Permission: database.clear
Parameters:
database: str
Syntax:
clear database (str: database);
Removes all the records from the table
Permission: table.clear
Parameters:
table: str
Syntax:
clear table (str: table);
Copies the database with all the contents
Permission: database.clone
Parameters:
-
prototype: str
-
destination: str
Syntax:
clone database (str: prototype): destination = str;
Clones the database, but clears the tables
Permission: database.scheme
Parameters:
-
prototype: str
-
destination: str
Syntax:
clone database scheme (str: prototype): destination = str;
Clones the table
Permission: table.clone
Parameters:
-
prototype: str
-
destination: str
Syntax:
clone table (str: prototype): destination = str;
Clones the table, but deletes the records
Permission: table.scheme
Parameters:
-
prototype: str
-
destination: str
Syntax:
clone table scheme (str: prototype): destination = str;
Creates a database
Permission: database.create
Parameters:
name: str
Syntax:
create database (str: name);
Creates a table
Permission: table.create
Parameters:
-
table: str
-
columns: list of column
-
records: list of record
Syntax:
create table (str: table): columns = list of column, records = list of record;
Creates an access token
Permission: token.create
Parameters:
-
token: str
-
permissions: list of str
Syntax:
create token (str: token): permissions = list of str;
Does stuff for Quark developers. Don't use.
Permission: !unsafe.debug
Parameters:
json: str
Syntax:
_debug: json = str;
Deletes a column in a table
Permission: column.delete
Parameters:
-
name: str
-
table: str
Syntax:
delete column (str: name): table = str;
Deletes a database
Permission: database.delete
Parameters:
database: str
Syntax:
delete database (str: database);
Deletes records meet the condition
Permission: json.delete
Parameters:
-
table: str
-
selector: selector
-
skip: int
-
limit: int
Syntax:
delete from (str: table): selector = selector, skip = int, limit = int;
Deletes a table
Permission: table.delete
Parameters:
table: str
Syntax:
delete table (str: table);
Evaluates the Quark QL entity.
Permission: !unsafe.eval
Parameters:
entity: ?
Syntax:
eval (?: entity);
Resets the server to factory settings
Permission: !unsafe.factory-reset
Parameters:
Syntax:
factory reset;
Grants a token a permission
Permission: token.grand
Parameters:
-
token: str
-
permission: str
Syntax:
grant token (str: token): permission = str;
Inserts a new record to a table
Permission: table.insert
Parameters:
-
table: str
-
record: record
Syntax:
insert into (str: table): record = record;
Lists columns in a table
Permission: column.list
Parameters:
table: str
Syntax:
list columns in (str: table);
Lists the databases
Permission: databases.list
Parameters:
Syntax:
list databases;
Lists tables in a database
Permission: table.list
Parameters:
database: str
Syntax:
list tables in (str: database);
Defines a new set of permissions for a token
Permission: token.redefine
Parameters:
-
token: str
-
permissions: list of str
Syntax:
redefine permissions for token (str: token): permissions = list of str;
Reloads the server
Permission: server.reload
Parameters:
Syntax:
reload server;
Renames a column in a table
Permission: column.rename
Parameters:
-
table: str
-
old: str
-
new: str
Syntax:
rename column in (str: table): old = str, new = str;
Renames a database
Permission: database.rename
Parameters:
-
old: str
-
new: str
Syntax:
rename database: old = str, new = str;
Renames the server
Permission: server.rename
Parameters:
new: str
Syntax:
rename server to (str: new);
Renames a table
Permission: table.rename
Parameters:
-
old: str
-
new: str
Syntax:
rename table: old = str, new = str;
Changes the column order
Permission: column.reorder
Parameters:
-
table: str
-
order: list of str
Syntax:
reorder columns in (str: table): order = list of str;
Runs a command
Permission: server.command
Parameters:
command: str
Syntax:
run command (str: command);
Schedules a command
Permission: server.schedule.command
Parameters:
-
command: str
-
period: long
Syntax:
schedule command (str: command): period = long;
Schedules a query
Permission: server.schedule.query
Parameters:
-
query: str
-
period: long
Syntax:
schedule query (str: query): period = long;
Selects records from a table
Permission: json.select
Parameters:
-
table: str
-
selector: selector
-
skip: int
-
limit: int
Syntax:
select from (str: table): selector = selector, skip = int, limit = int;
Stop the server
Permission: server.stop
Parameters:
Syntax:
stop server;
Swaps two columns in a table
Permission: columns.swap
Parameters:
-
table: str
-
first: str
-
second: str
Syntax:
swap columns in (str: table): first = str, second = str;
Removes a permission from a token
Permission: token.remove permission
Parameters:
-
token: str
-
permission: str
Syntax:
remove permission from token (str: token): permission = str;
Describes all the instructions. Don't use.
Permission: any
Parameters:
Syntax:
_describe instructions;
Describes all the constructors. Don't use.
Permission: any
Parameters:
Syntax:
_describe constructors;
Hints the next elements for editor hints. Don't use.
Permission: any
Parameters:
-
query: str
-
caret position: int
Syntax:
_hint next elements: query = str, caret position = int;
Returns the server name
Permission: any
Parameters:
Syntax:
get server name;
What does it do? Hm-m...
Permission: any
Parameters:
Syntax:
secret;
Adds a new table modifier
Permission: table.add modifier
Parameters:
-
table: str
-
column: str
-
modifier: modifier
Syntax:
add modifier to (str: table): column = str, modifier = modifier;
Lists loaded plugins
Permission: server.plugins
Parameters:
Syntax:
list plugins;
Quickly finds a record by a single field
Permission: table.find
Parameters:
-
table: str
-
finder: finder
Syntax:
find in (str: table): finder = finder;
Counts records matching condition
Permission: table.count in
Parameters:
-
table: str
-
selector: selector
Syntax:
count in (str: table): selector = selector;
Shows all the modifiers of the table. Don't use
Permission: table.describe modifiers
Parameters:
table: str
Syntax:
_describe modifiers of (str: table);
Clears all the scheduled commands.
Permission: server.schedule.command.clear
Parameters:
Syntax:
clear scheduled commands;
Clears all the scheduled queries.
Permission: server.schedule.query.clear
Parameters:
Syntax:
clear scheduled queries;
Shows the variable value of the table
Permission: table.variable.get
Parameters:
-
table: str
-
name: str
Syntax:
get variable in (str: table): name = str;
Sets a new value for a variable in the table
Permission: table.variable.set
Parameters:
-
table: str
-
name: str
-
value: ?
Syntax:
set variable in (str: table): name = str, value = ?;
Shows all the variables inside the table
Permission: table.variable.list
Parameters:
table: str
Syntax:
list variables in (str: table);
Deletes a variable in the table
Permission: table.variable.delete
Parameters:
-
table: str
-
name: str
Syntax:
delete variable in (str: table): name = str;
Excludes the records matches the finder
Permission: table.exclude
Parameters:
-
table: str
-
finder: finder
Syntax:
exclude from (str: table): finder = finder;
Returns Quark's version
Permission: any
Parameters:
Syntax:
get version;
Defines a variable
Permission: var
Parameters:
-
name: str
-
value: ?
Syntax:
var (str: name): value = ?;
Constructors can transform entities in both your instructions and tables. Use them for integers, strings, lists, and any other type of entities.
Abs
Parameters:
arg0: double
Syntax:
double @abs(double: arg0)
Sin
Parameters:
arg0: double
Syntax:
double @sin(double: arg0)
Cos
Parameters:
arg0: double
Syntax:
double @cos(double: arg0)
Tan
Parameters:
arg0: double
Syntax:
double @tan(double: arg0)
Atan2
Parameters:
-
arg0: double
-
arg1: double
Syntax:
double @atan2(double: arg0, double: arg1)
Sqrt
Parameters:
arg0: double
Syntax:
double @sqrt(double: arg0)
Log
Parameters:
arg0: double
Syntax:
double @log(double: arg0)
Log10
Parameters:
arg0: double
Syntax:
double @log10(double: arg0)
Pow
Parameters:
-
arg0: double
-
arg1: double
Syntax:
double @pow(double: arg0, double: arg1)
Exp
Parameters:
arg0: double
Syntax:
double @exp(double: arg0)
Min
Parameters:
-
arg0: double
-
arg1: double
Syntax:
double @min(double: arg0, double: arg1)
Max
Parameters:
-
arg0: double
-
arg1: double
Syntax:
double @max(double: arg0, double: arg1)
Floor
Parameters:
arg0: double
Syntax:
double @floor(double: arg0)
Ceil
Parameters:
arg0: double
Syntax:
double @ceil(double: arg0)
Rint
Parameters:
arg0: double
Syntax:
double @rint(double: arg0)
Round
Parameters:
arg0: float
Syntax:
int @round(float: arg0)
Add exact
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @add exact(long: arg0, long: arg1)
Decrement exact
Parameters:
arg0: int
Syntax:
int @decrement exact(int: arg0)
Increment exact
Parameters:
arg0: long
Syntax:
long @increment exact(long: arg0)
Multiply exact
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @multiply exact(long: arg0, long: arg1)
Multiply high
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @multiply high(long: arg0, long: arg1)
Unsigned multiply high
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @unsigned multiply high(long: arg0, long: arg1)
Negate exact
Parameters:
arg0: int
Syntax:
int @negate exact(int: arg0)
Subtract exact
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @subtract exact(long: arg0, long: arg1)
Fma
Parameters:
-
arg0: double
-
arg1: double
-
arg2: double
Syntax:
double @fma(double: arg0, double: arg1, double: arg2)
Copy sign
Parameters:
-
arg0: double
-
arg1: double
Syntax:
double @copy sign(double: arg0, double: arg1)
Signum
Parameters:
arg0: double
Syntax:
double @signum(double: arg0)
Clamp
Parameters:
-
arg0: float
-
arg1: float
-
arg2: float
Syntax:
float @clamp(float: arg0, float: arg1, float: arg2)
Scalb
Parameters:
-
arg0: float
-
arg1: int
Syntax:
float @scalb(float: arg0, int: arg1)
Get exponent
Parameters:
arg0: double
Syntax:
int @get exponent(double: arg0)
Floor mod
Parameters:
-
arg0: int
-
arg1: int
Syntax:
int @floor mod(int: arg0, int: arg1)
Asin
Parameters:
arg0: double
Syntax:
double @asin(double: arg0)
Acos
Parameters:
arg0: double
Syntax:
double @acos(double: arg0)
Atan
Parameters:
arg0: double
Syntax:
double @atan(double: arg0)
Cbrt
Parameters:
arg0: double
Syntax:
double @cbrt(double: arg0)
i e e eremainder
Parameters:
-
arg0: double
-
arg1: double
Syntax:
double @ i e e eremainder(double: arg0, double: arg1)
Floor div
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @floor div(long: arg0, long: arg1)
Ceil div
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @ceil div(long: arg0, long: arg1)
Ceil mod
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @ceil mod(long: arg0, long: arg1)
Power of two d
Parameters:
arg0: int
Syntax:
double @power of two d(int: arg0)
Power of two f
Parameters:
arg0: int
Syntax:
float @power of two f(int: arg0)
Sinh
Parameters:
arg0: double
Syntax:
double @sinh(double: arg0)
Cosh
Parameters:
arg0: double
Syntax:
double @cosh(double: arg0)
Tanh
Parameters:
arg0: double
Syntax:
double @tanh(double: arg0)
Hypot
Parameters:
-
arg0: double
-
arg1: double
Syntax:
double @hypot(double: arg0, double: arg1)
Expm1
Parameters:
arg0: double
Syntax:
double @expm1(double: arg0)
Log1p
Parameters:
arg0: double
Syntax:
double @log1p(double: arg0)
To radians
Parameters:
arg0: double
Syntax:
double @to radians(double: arg0)
To degrees
Parameters:
arg0: double
Syntax:
double @to degrees(double: arg0)
Random
Parameters:
Syntax:
double @random
Divide exact
Parameters:
-
arg0: int
-
arg1: int
Syntax:
int @divide exact(int: arg0, int: arg1)
Floor div exact
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @floor div exact(long: arg0, long: arg1)
Ceil div exact
Parameters:
-
arg0: long
-
arg1: long
Syntax:
long @ceil div exact(long: arg0, long: arg1)
To int exact
Parameters:
arg0: long
Syntax:
int @to int exact(long: arg0)
Multiply full
Parameters:
-
arg0: int
-
arg1: int
Syntax:
long @multiply full(int: arg0, int: arg1)
Abs exact
Parameters:
arg0: long
Syntax:
long @abs exact(long: arg0)
Ulp
Parameters:
arg0: double
Syntax:
double @ulp(double: arg0)
Next after
Parameters:
-
arg0: float
-
arg1: double
Syntax:
float @next after(float: arg0, double: arg1)
Next up
Parameters:
arg0: double
Syntax:
double @next up(double: arg0)
Next down
Parameters:
arg0: double
Syntax:
double @next down(double: arg0)
Limit
Parameters:
-
integer: int
-
min: int
-
max: int
Syntax:
int @limit(int: integer, int: min, int: max)
Between
Parameters:
-
min: int
-
integer: int
-
max: int
Syntax:
boolean @between(int: min, int: integer, int: max)
Count digits
Parameters:
integer: int
Syntax:
int @count digits(int: integer)
Index limit
Parameters:
-
integer: int
-
length: int
Syntax:
int @index limit(int: integer, int: length)
Positive modulus
Parameters:
-
integer: int
-
divisor: int
Syntax:
int @positive modulus(int: integer, int: divisor)
Now
Parameters:
Syntax:
date @now
The string in upper case
Parameters:
string to uppercase: str
Syntax:
str @upper(str: string to uppercase)
The string in lower case
Parameters:
string to lowercase: str
Syntax:
str @lower(str: string to lowercase)
A new list of values
Parameters:
values: ?
Syntax:
list @list(? varargs: values)
The true value
Parameters:
Syntax:
boolean @yes
The false value
Parameters:
Syntax:
boolean @no
Concatenated string
Parameters:
strings: str
Syntax:
str @concat(str varargs: strings)
The selector
Parameters:
selector lambda: str
Syntax:
selector @selector(str: selector lambda)
Result of and
Parameters:
booleans: boolean
Syntax:
boolean @and(boolean varargs: booleans)
Capitalized string
Parameters:
string to capitalize: str
Syntax:
str @capitalize(str: string to capitalize)
The string with case inverted
Parameters:
string where to switch case: str
Syntax:
str @invert case(str: string where to switch case)
Number of elements inside the list
Parameters:
list to count elements: list of ?
Syntax:
int @count(list of ?: list to count elements)
Count of digits of the integer
Parameters:
integer: int
Syntax:
int @digit count(int: integer)
The value of 'e' math constant
Parameters:
Syntax:
float @e
An empty list with specified type
Parameters:
type name of a new list: str
Syntax:
list @empty list of(str: type name of a new list)
Is string ends with the suffix
Parameters:
-
string: str
-
suffix: str
Syntax:
boolean @ends with(str: string, str: suffix)
Are these objects equal
Parameters:
-
first object: ?
-
second object: ?
Syntax:
boolean @equals(?: first object, ?: second object)
The value of the binary string
Parameters:
binary string to convert to integer: str
Syntax:
int @from binary string(str: binary string to convert to integer)
The value of the hex string
Parameters:
hex string to convert to integer: str
Syntax:
int @from hex string(str: hex string to convert to integer)
The value of the octal string
Parameters:
octal string to convert to integer: str
Syntax:
int @from octal string(str: octal string to convert to integer)
Is the first number greater than the second
Parameters:
-
first number: float
-
second number: float
Syntax:
boolean @greater(float: first number, float: second number)
Is the first number greater than the second or equals to
Parameters:
-
first number: float
-
second number: float
Syntax:
boolean @greater or equals(float: first number, float: second number)
Is the string empty
Parameters:
string: str
Syntax:
boolean @is string empty(str: string)
A joined list
Parameters:
-
first list: list of ?
-
more lists: list of ?
Syntax:
list @join(list of ?: first list, list of ? varargs: more lists)
The left trimmed string
Parameters:
string to trim: str
Syntax:
str @left trim(str: string to trim)
The length of the string
Parameters:
string to count characters in: str
Syntax:
int @length(str: string to count characters in)
Is the first number is less than the second
Parameters:
-
first number: float
-
second number: float
Syntax:
boolean @less(float: first number, float: second number)
Is the first number is less than the second or equals to
Parameters:
-
first number: float
-
second number: float
Syntax:
boolean @less or equals(float: first number, float: second number)
Is the string matches regex
Parameters:
-
string to check: str
-
regex lambda: str
Syntax:
boolean @matches(str: string to check, str: regex lambda)
The reversed string
Parameters:
string to reverse: str
Syntax:
str @reverse string(str: string to reverse)
The result of or
Parameters:
booleans: boolean
Syntax:
boolean @or(boolean varargs: booleans)
The value of pi constant
Parameters:
Syntax:
float @pi
The random value
Parameters:
-
inclusive min: int
-
exclusive max: int
Syntax:
int @random between(int: inclusive min, int: exclusive max)
The repeated string
Parameters:
-
string to repeat: str
-
times to repeat: int
Syntax:
str @repeat(str: string to repeat, int: times to repeat)
The string with replaced entries
Parameters:
-
string where to replace: str
-
string to be replaced: str
-
string to replace: str
Syntax:
str @replace(str: string where to replace, str: string to be replaced, str: string to replace)
The right trimmed string
Parameters:
string to trim: str
Syntax:
str @right trim(str: string to trim)
The sorted list
Parameters:
list to sort: list
Syntax:
list @sort(list: list to sort)
The string parts
Parameters:
-
string to split: str
-
delimiter: str
Syntax:
list @split(str: string to split, str: delimiter)
Does the string start with the prefix
Parameters:
-
string: str
-
prefix: str
Syntax:
boolean @starts with(str: string, str: prefix)
Does the string contain the entry
Parameters:
-
string where to search: str
-
searching string: str
Syntax:
boolean @string contains(str: string where to search, str: searching string)
The binary string
Parameters:
integer to convert to binary string: int
Syntax:
str @to binary string(int: integer to convert to binary string)
The boolean
Parameters:
-
string to convert to boolean: str
-
default boolean value if conversation fails: boolean
Syntax:
boolean @to boolean(str: string to convert to boolean, optional boolean: default boolean value if conversation fails)
The float
Parameters:
-
string to convert to float: str
-
default float value if conversation fails: float
Syntax:
float @to float(str: string to convert to float, optional float: default float value if conversation fails)
The hex string
Parameters:
integer to convert to hex string: int
Syntax:
str @to hex string(int: integer to convert to hex string)
The integer
Parameters:
-
string to convert to integer: str
-
default integer value if conversation fails: int
Syntax:
int @to int(str: string to convert to integer, optional int: default integer value if conversation fails)
The octal string
Parameters:
integer to convert to octal string: int
Syntax:
str @to octal string(int: integer to convert to octal string)
The trimmed string
Parameters:
string to trim: str
Syntax:
str @trim(str: string to trim)
Fraction
Parameters:
-
number to divide: float
-
divisor: float
Syntax:
float @divide(float: number to divide, float: divisor)
The product
Parameters:
numbers to multiply: float
Syntax:
float @multiply(float varargs: numbers to multiply)
Negated value
Parameters:
boolean to invert: boolean
Syntax:
boolean @not(boolean: boolean to invert)
The difference
Parameters:
-
number to subtract from: float
-
numbers to subtract: float
Syntax:
float @subtract(float: number to subtract from, float varargs: numbers to subtract)
The sum
Parameters:
numbers to sum: float
Syntax:
float @sum(float varargs: numbers to sum)
The record
Parameters:
values: ?
Syntax:
record @record(? varargs: values)
The record changer
Parameters:
-
column name to change: str
-
changer lambda: str
Syntax:
changer @changer(str: column name to change, str: changer lambda)
The null constant
Parameters:
type of null: str
Syntax:
nullable any @null(optional str: type of null)
The field generator
Parameters:
lambda: str
Syntax:
generator @generator(str: lambda)
The finder
Parameters:
-
column name: str
-
finding object: ?
Syntax:
finder @finder(str: column name, ?: finding object)
The date from unix timestamp
Parameters:
unix time stamp: long
Syntax:
date @date from stamp(long: unix time stamp)
The amount of milliseconds
Parameters:
milliseconds: long
Syntax:
long @milliseconds(long: milliseconds)
The amount of milliseconds
Parameters:
seconds: long
Syntax:
long @seconds(long: seconds)
The amount of milliseconds
Parameters:
minutes: long
Syntax:
long @minutes(long: minutes)
The amount of milliseconds
Parameters:
hours: long
Syntax:
long @hours(long: hours)
The amount of milliseconds
Parameters:
days: long
Syntax:
long @days(long: days)
The amount of milliseconds
Parameters:
weeks: long
Syntax:
long @weeks(long: weeks)
The amount of milliseconds
Parameters:
months: long
Syntax:
long @months(long: months)
The amount of milliseconds
Parameters:
years: long
Syntax:
long @years(long: years)
The date from the format passed in
Parameters:
-
date format: str
-
formatted date: str
Syntax:
date @date from format(str: date format, str: formatted date)
1 millisecond
Parameters:
Syntax:
long @millisecond
Milliseconds in 1 second
Parameters:
Syntax:
long @second
Milliseconds in 1 minute
Parameters:
Syntax:
long @minute
Milliseconds in 1 hour
Parameters:
Syntax:
long @hour
Milliseconds in 1 day
Parameters:
Syntax:
long @day
Milliseconds in 1 week
Parameters:
Syntax:
long @week
Milliseconds in 1 month
Parameters:
Syntax:
long @month
Milliseconds in 1 year
Parameters:
Syntax:
long @year
Casted entity
Parameters:
-
casting entity: ?
-
cast type: str
Syntax:
any @cast(?: casting entity, str: cast type)
The value of the variable
Parameters:
variable name: str
Syntax:
any @var(str: variable name)
The column modifier
Parameters:
-
min: float
-
max: float
Syntax:
modifier @require between(float: min, float: max)
The column modifier
Parameters:
Syntax:
modifier @require constant
The column modifier
Parameters:
Syntax:
modifier @incrementing
The column modifier
Parameters:
Syntax:
modifier @require negative
The column modifier
Parameters:
Syntax:
modifier @require not negative
The column modifier
Parameters:
Syntax:
modifier @positive
The column modifier
Parameters:
Syntax:
modifier @require not positive
The column modifier
Parameters:
Syntax:
modifier @alpha dash dot underscore
The column modifier
Parameters:
Syntax:
modifier @alpha dash
The column modifier
Parameters:
Syntax:
modifier @alpha dash numeric
The column modifier
Parameters:
Syntax:
modifier @alpha dash underscore
The column modifier
Parameters:
Syntax:
modifier @alpha dot
The column modifier
Parameters:
Syntax:
modifier @alpha dot underscore
The column modifier
Parameters:
Syntax:
modifier @alpha underscore
The column modifier
Parameters:
Syntax:
modifier @email
The column modifier
Parameters:
Syntax:
modifier @not blank
The column modifier
Parameters:
Syntax:
modifier @required
The column modifier
Parameters:
Syntax:
modifier @regex
The column modifier
Parameters:
Syntax:
modifier @hex color
The column modifier
Parameters:
Syntax:
modifier @url
The column modifier
Parameters:
Syntax:
modifier @unique
The column modifier
Parameters:
default value: ?
Syntax:
modifier @default(?: default value)
The column description
Parameters:
-
column name: str
-
modifiers: modifier
Syntax:
column @id(str: column name, modifier varargs: modifiers)
The column description
Parameters:
-
column name: str
-
modifiers: modifier
Syntax:
column @str(str: column name, modifier varargs: modifiers)
The column description
Parameters:
-
column name: str
-
modifiers: modifier
Syntax:
column @int(str: column name, modifier varargs: modifiers)
The column description
Parameters:
-
column name: str
-
modifiers: modifier
Syntax:
column @boolean(str: column name, modifier varargs: modifiers)
The column description
Parameters:
-
column name: str
-
modifiers: modifier
Syntax:
column @float(str: column name, modifier varargs: modifiers)
The column description
Parameters:
-
column name: str
-
modifiers: modifier
Syntax:
column @date(str: column name, modifier varargs: modifiers)
The column description
Parameters:
-
column name: str
-
modifiers: modifier
Syntax:
column @long(str: column name, modifier varargs: modifiers)
Commands helps with server interaction.
Stops the server so you will need to start it manually by launching 'Start Server.bat'. Note that ongoing processes will be halted.
Parameters:
Syntax:
exit
Opens up the help menu contains all the commands with descriptions and syntax
Parameters:
-
command: STRING
- If you need a help with some command (for example, you don't know the argument names or the command purpose), just add a command name to display the help -
constructor: STRING
- If you need a help with some constructor. just add the constructor name
Syntax:
help command <A command you need help with> constructor <A constructor you need help with>
Takes a module with the name passed with 'for' argument and changes it's minimal log level to 'to' argument
Parameters:
-
for: STRING
- A module that the minimal logging level should be changed for -
to: STRING
- A minimal logging level required to log
Syntax:
change-log-level for [module name] to [log level]
Opens up a debug dialog 'named'
Parameters:
for: STRING
- The name of debug dialog you want to open
Syntax:
open-debug for [The name of debug dialog]
Enables the debug logging for a module with name passed in the 'for' argument
Parameters:
for: STRING
- A name of the module which log level should be switched to 'debug'
Syntax:
enable-debug for [The module name]
Disables the debug for a module with name passed as the 'for' argument
Parameters:
for: STRING
- The module name which log level should be switched back to 'info'
Syntax:
disable-debug for [The module name]
Shows all the constructors available in this version of Quark QL
Parameters:
Syntax:
constructors
Shows all the instructions available in this version of Quark QL
Parameters:
Syntax:
instructions
Runs an instruction or a command
Parameters:
-
instruction: STRING
- An instruction that should be run -
command: STRING
- A command that should be run
Syntax:
run instruction <An instruction to run> command <A command to run>
Runs the small developers tests for Quark developers.
Parameters:
-
for: STRING
- A name of the test to be run -
json: STRING
- A json for testing code. The usage of json passed differs from test to test.
Syntax:
test for [The test name] json <The test json>
Evaluates a Quark QL entity
Parameters:
expression: STRING
- An expression to evaluate
Syntax:
eval expression [An expression]
Shows all the column modifiers provided by Quark
Parameters:
Syntax:
modifiers
Creates all the necessary databases and tables for Quark Server to work. This command must never be called manually.
Parameters:
Syntax:
install
Resets all the settings and databases to the before-use state.
Parameters:
Syntax:
factory-reset
Scans the Quark Server system files and creates them if needed.
Parameters:
Syntax:
repair
Removes all the unnecessary files generated by Maven
Parameters:
Syntax:
clear-maven-output
Shows the list of all the scheduled tasks: queries and commands.
Parameters:
Syntax:
list-scheduled-tasks
Stops the Quark Server and starts it again. All the plugins will also be reloaded.
Parameters:
Syntax:
reload
Clears the server's console
Parameters:
Syntax:
clear
Lists objects of type you specify
Parameters:
of: STRING
- Type of objects you want to specify
Syntax:
list of [Object type]
Formats the instruction that passed in
Parameters:
instruction: STRING
- The instruction you want to be formatted
Syntax:
format instruction [The formatting instruction]
Reruns the last command with suggested name
Parameters:
Syntax:
/
When Clean mode is enabled, the console is cleared after each command
Parameters:
Syntax:
clean-mode