Skip to content

Commit e6bc99f

Browse files
committed
issue #13: add missing pieces per current instructions for creating a new adapter
1 parent 123c590 commit e6bc99f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dbt/adapters/sqlite/connections.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ class SQLiteCredentials(Credentials):
3131
def type(self):
3232
return "sqlite"
3333

34+
@property
35+
def unique_field(self):
36+
"""
37+
Hashed and included in anonymous telemetry to track adapter adoption.
38+
Pick a field that can uniquely identify one team/organization building with this adapter
39+
"""
40+
return self.host
41+
3442
def _connection_keys(self):
3543
""" Keys to show when debugging """
3644
return ["database", "schema", "schemas_and_paths", "schema_directory" ]

dbt/include/sqlite/macros/adapters.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,7 @@ that here when making the relation and everything else should Just Work
116116

117117
{% do return(tmp_relation) %}
118118
{% endmacro %}
119+
120+
{% macro sqlite__current_timestamp() -%}
121+
datetime()
122+
{%- endmacro %}

0 commit comments

Comments
 (0)