Skip to content

Commit 375673a

Browse files
committed
Added busy handler and busy timeout interfaces.
1 parent 49afad5 commit 375673a

File tree

4 files changed

+190
-152
lines changed

4 files changed

+190
-152
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ all: $(TARGET)
1919
test: $(TEST)
2020

2121
$(TARGET):
22+
$(FC) $(FFLAGS) -c src/sqlite_util.f90
2223
$(FC) $(FFLAGS) -c src/sqlite.f90
23-
$(AR) $(ARFLAGS) $(TARGET) sqlite.o
24+
$(AR) $(ARFLAGS) $(TARGET) sqlite_util.o sqlite.o
2425

2526
$(TEST): $(TARGET)
2627
$(FC) $(FFLAGS) $(LDFLAGS) -o test_sqlite test/test_sqlite.f90 $(TARGET) $(LDLIBS)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ CREATE TABLE example_table (
5656
The program opens a database `example.db`, creates the table `example_table`,
5757
inserts some values, then reads them back in, and prints them to console.
5858

59-
The (optional) module `sqlite_util` contains C interoperability
60-
functions/interfaces to convert C char pointer to Fortran allocatable
61-
character.
59+
The module `sqlite_util` contains C interoperability functions/interfaces to
60+
convert C char pointer to Fortran allocatable character.
6261

6362
```fortran
6463
! example.f90
6564
program example
6665
use, intrinsic :: iso_c_binding
6766
use :: sqlite
6867
use :: sqlite_util
68+
implicit none (type, external)
6969
character(len=:), allocatable :: errmsg
7070
integer :: rc
7171
type(c_ptr) :: db

0 commit comments

Comments
 (0)