#
# Copyright (C) 2020 Xiaomi Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
config UNQLITE
bool "UnQLite Database"
depends on TLS_TASK_NELEM > 0 || BUILD_KERNEL
depends on FS_LOCK_BUCKET_SIZE > 0
default n
if UNQLITE
config SXMEM_POOL_NBUCKETS
int "memory pool bucket number"
default 8
config SXMEM_POOL_INCR
int "memory pool increment step"
default 1
config UNQLITE_LOCK_BY_SEM
bool "use named semaphores as filelocks"
default y
select FS_NAMED_SEMAPHORES
config UNQLITE_ENABLE_DIRSYNC
bool "disable upper level directory sync"
default n
config UNQLITE_ENABLE_JX9_HASH_IO
bool "enable built-in hash functions"
default n
config JX9_ENABLE_DISK_IO
bool "enable built-in VFS functions"
default n
config JX9_ENABLE_BUILTIN_FUNC
bool "enable built-in Jx9 functions"
default n
config JX9_ENABLE_MATH_FUNC
bool "enable built-in math functions"
default n
config UNQLITE_ENABLE_TESTS
bool "enable unqlite testcase"
default n
if UNQLITE_ENABLE_TESTS
config UNQLITE_TESTS_PRIORITY
int "unqlite tests priority"
default 100
config UNQLITE_TESTS_STACKSIZE
int "unqlite tests stacksize"
default 8192
endif # UNQLITE_ENABLE_TESTS
endif # UNQLITE