Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ repos:
files: ^driverbase/
types_or: [go, go-mod]

- id: golangci-lint
name: lint ffitemplate
entry: bash -c 'cd ffitemplate && golangci-lint run --fix --timeout 5m'
files: ^ffitemplate/
types_or: [go, go-mod]

- id: golangci-lint
name: lint testutil
entry: bash -c 'cd testutil && golangci-lint run --fix --timeout 5m'
Expand Down Expand Up @@ -78,6 +84,12 @@ repos:
types: [go]
entry: bash -c 'cd driverbase && go fix'
pass_filenames: false
- id: gofix-ffitemplate
name: go fix /ffitemplate
language: system
types: [go]
entry: bash -c 'cd ffitemplate && go fix'
pass_filenames: false
- id: gofix-sqlwrapper
name: go fix /sqlwrapper
language: system
Expand Down
4 changes: 4 additions & 0 deletions .rat-apache
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ driverbase/rotating_file_writer.go
driverbase/rotating_file_writer_test.go
driverbase/shared_utils.go
driverbase/statement.go
ffitemplate/_tmpl/driver.go.tmpl
ffitemplate/_tmpl/utils.c.tmpl
ffitemplate/_tmpl/utils.h.tmpl
ffitemplate/main.go
validation/validation.go
26 changes: 26 additions & 0 deletions ffitemplate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
Copyright (c) 2026 ADBC Drivers Contributors

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.
-->

# Template for FFI Wrapper

Generate the necessary FFI code automatically for a Go-based driver. This
code was ported from upstream apache/arrow-adbc.

Usage:

```
go run main.go -prefix Bigquery -driver path/to/driver/go
```
Loading
Loading