Skip to content

Commit dbbbf3c

Browse files
committed
Document Lua function available on flex backend database tables
1 parent 7a180ff commit dbbbf3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/flex.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ with the following keys:
128128
`SERIAL` columns or when you want to fill in the column later yourself.
129129
(Optional, default `false`.)
130130

131+
All the `osm2pgsql.define*table()` functions return a database table object.
132+
You can call the following functions on it:
133+
134+
* `name()`: The name of the table as specified in the define function.
135+
* `schema()`: The schema of the table as specified in the define function.
136+
* `columns()`: The columns of the table as specified in the define function.
137+
* `add_row()`: Add a row to the database table. See below for details.
138+
131139
### Processing callbacks
132140

133141
You are expected to define one or more of the following functions:

0 commit comments

Comments
 (0)